changeset 6272:43a7c599aace

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 11 Aug 2025 14:23:21 +0200
parents 4424dd1adf14
children 1c66005c6477
files OrthancFramework/Sources/MultiThreading/RunnableWorkersPool.cpp OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h OrthancServer/Resources/CodeModel/README.txt
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/MultiThreading/RunnableWorkersPool.cpp	Mon Aug 11 14:03:18 2025 +0200
+++ b/OrthancFramework/Sources/MultiThreading/RunnableWorkersPool.cpp	Mon Aug 11 14:23:21 2025 +0200
@@ -120,7 +120,7 @@
     std::unique_ptr<MetricsRegistry::SharedMetrics>  availableWorkers_;
 
   public:
-    PImpl(MetricsRegistry::SharedMetrics* availableWorkers /* takes ownership */) :
+    explicit PImpl(MetricsRegistry::SharedMetrics* availableWorkers /* takes ownership */) :
       continue_(false),
       availableWorkers_(availableWorkers)
     {
--- a/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Mon Aug 11 14:03:18 2025 +0200
+++ b/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Mon Aug 11 14:23:21 2025 +0200
@@ -8005,7 +8005,7 @@
    * 
    * @see OrthancPluginRegisterChunkedRestCallback()
    * @param reader Memory location that must be filled with the newly-created reader.
-   * @param url The URI that is accessed.
+   * @param uri The URI that is accessed.
    * @param request The body of the HTTP request. Note that "body" and "bodySize" are not used.
    * @return 0 if success, or the error code if failure.
    **/
--- a/OrthancServer/Resources/CodeModel/README.txt	Mon Aug 11 14:03:18 2025 +0200
+++ b/OrthancServer/Resources/CodeModel/README.txt	Mon Aug 11 14:23:21 2025 +0200
@@ -18,7 +18,7 @@
 
 Executing with default parameters:
 
-$ sudo apt-get install python3-clang-14 python3-pystache
+$ sudo apt install python3-clang-14 python3-pystache
 $ python3 ./GenerateCodeModel.py