changeset 5526:9a431368801b

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 31 Jan 2024 10:40:10 +0100
parents e998ca3e20be
children 93dcc555b655 b822dcebf9ff
files OrthancServer/Resources/RunCppCheck.sh OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Resources/RunCppCheck.sh	Wed Jan 31 09:27:34 2024 +0100
+++ b/OrthancServer/Resources/RunCppCheck.sh	Wed Jan 31 10:40:10 2024 +0100
@@ -20,7 +20,7 @@
 stlFindInsert:../../OrthancServer/Sources/OrthancWebDav.cpp:377
 stlFindInsert:../../OrthancServer/Sources/ServerJobs/MergeStudyJob.cpp:40
 stlFindInsert:../../OrthancServer/Sources/ServerJobs/SplitStudyJob.cpp:190
-stlFindInsert:../../OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp:334
+stlFindInsert:../../OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp:360
 syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h:52
 syntaxError:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp:73
 syntaxError:../../OrthancFramework/UnitTestsSources/ZipTests.cpp:132
@@ -36,8 +36,8 @@
 assertWithSideEffect:../../OrthancServer/Plugins/Engine/OrthancPluginDatabase.cpp:1025
 assertWithSideEffect:../../OrthancServer/Sources/Database/Compatibility/DatabaseLookup.cpp:289
 assertWithSideEffect:../../OrthancServer/Sources/Database/Compatibility/DatabaseLookup.cpp:388
-assertWithSideEffect:../../OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp:3551
-assertWithSideEffect:../../OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp:272
+assertWithSideEffect:../../OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp:3630
+assertWithSideEffect:../../OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp:285
 assertWithSideEffect:../../OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp:453
 EOF
 
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp	Wed Jan 31 09:27:34 2024 +0100
+++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp	Wed Jan 31 10:40:10 2024 +0100
@@ -764,7 +764,7 @@
 
 
     public:
-      Operations(bool hasLabelsSupport) :
+      explicit Operations(bool hasLabelsSupport) :
         hasLabelsSupport_(hasLabelsSupport)
       {
       }