changeset 1957:3f88c239043a

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Oct 2022 12:06:04 +0200
parents 1e5ba130f041
children 142c7ee8fe1f
files Applications/Samples/RtViewerPlugin/CMakeLists.txt Applications/Samples/WebAssembly/CMakeLists.txt OrthancStone/Sources/Toolbox/BucketAccumulator2D.cpp RenderingPlugin/Sources/Plugin.cpp
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Samples/RtViewerPlugin/CMakeLists.txt	Thu Oct 27 10:52:21 2022 +0200
+++ b/Applications/Samples/RtViewerPlugin/CMakeLists.txt	Thu Oct 27 12:06:04 2022 +0200
@@ -28,7 +28,7 @@
   set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline")
   set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
 else()
-  set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.10.1")
+  set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.11.2")
   set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web")
 endif()
 
--- a/Applications/Samples/WebAssembly/CMakeLists.txt	Thu Oct 27 10:52:21 2022 +0200
+++ b/Applications/Samples/WebAssembly/CMakeLists.txt	Thu Oct 27 12:06:04 2022 +0200
@@ -29,7 +29,7 @@
   set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline")
   set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
 else()
-  set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.10.1")
+  set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "1.11.2")
   set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web")
 endif()
 
--- a/OrthancStone/Sources/Toolbox/BucketAccumulator2D.cpp	Thu Oct 27 10:52:21 2022 +0200
+++ b/OrthancStone/Sources/Toolbox/BucketAccumulator2D.cpp	Thu Oct 27 12:06:04 2022 +0200
@@ -195,7 +195,7 @@
 
       for (size_t x = 0; x < mapperX_.GetSize(); x++)
       {
-        fprintf(fp, "%7ld ", GetBucketContentSize(x, y));
+        fprintf(fp, "%7ld ", static_cast<long>(GetBucketContentSize(x, y)));
       }
 
       fprintf(fp, "\n");
--- a/RenderingPlugin/Sources/Plugin.cpp	Thu Oct 27 10:52:21 2022 +0200
+++ b/RenderingPlugin/Sources/Plugin.cpp	Thu Oct 27 12:06:04 2022 +0200
@@ -53,7 +53,7 @@
     std::unique_ptr<OrthancStone::DicomStructureSet> rtstruct_;
 
   public:
-    Item(OrthancStone::DicomStructureSet* rtstruct) :
+    explicit Item(OrthancStone::DicomStructureSet* rtstruct) :
       rtstruct_(rtstruct)
     {
       if (rtstruct == NULL)
@@ -62,7 +62,7 @@
       }
     }
     
-    virtual size_t GetMemoryUsage() const
+    virtual size_t GetMemoryUsage() const ORTHANC_OVERRIDE
     {
       return 1;
     }