changeset 6266:339c4ba0a3a3

fix for msvc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 11 Aug 2025 10:42:21 +0200
parents ac34dce1af7d
children 528a86082346 bb20617b77df
files OrthancFramework/Sources/HttpServer/HttpServer.cpp OrthancFramework/Sources/HttpServer/HttpServer.h
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/HttpServer.cpp	Mon Aug 11 10:22:19 2025 +0200
+++ b/OrthancFramework/Sources/HttpServer/HttpServer.cpp	Mon Aug 11 10:42:21 2025 +0200
@@ -1676,7 +1676,8 @@
     realm_(ORTHANC_REALM),
     threadsCount_(50),  // Default value in mongoose/civetweb
     tcpNoDelay_(true),
-    requestTimeout_(30)  // Default value in mongoose/civetweb (30 seconds)
+    requestTimeout_(30),  // Default value in mongoose/civetweb (30 seconds)
+    threadCounter_(0)
   {
 #if ORTHANC_ENABLE_MONGOOSE == 1
     CLOG(INFO, HTTP) << "This Orthanc server uses Mongoose as its embedded HTTP server";
--- a/OrthancFramework/Sources/HttpServer/HttpServer.h	Mon Aug 11 10:22:19 2025 +0200
+++ b/OrthancFramework/Sources/HttpServer/HttpServer.h	Mon Aug 11 10:42:21 2025 +0200
@@ -118,7 +118,7 @@
     std::unique_ptr<MetricsRegistry::SharedMetrics> availableHttpThreadsMetrics_;  // New in Orthanc 1.12.9
 
     boost::mutex threadCounterMutex_;  // New in Orthanc 1.12.9
-    uint16_t threadCounter_ = 0;       // Introduced as a global, static variable in Orthanc 1.12.2
+    uint16_t threadCounter_;           // Introduced as a global, static variable in Orthanc 1.12.2
 
 #if ORTHANC_ENABLE_PUGIXML == 1
     WebDavBuckets webDavBuckets_;