changeset 6383:6e68099c2031

cppcheck: duplInheritedMember
author Alain Mazy <am@orthanc.team>
date Mon, 10 Nov 2025 18:32:34 +0100
parents a6cac4870a06
children 588bd547ff77
files OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.h OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.h
diffstat 3 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.h	Mon Nov 10 18:26:07 2025 +0100
+++ b/OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.h	Mon Nov 10 18:32:34 2025 +0100
@@ -79,7 +79,7 @@
 
     const std::string& GetDescription() const;
 
-    void Reserve(size_t size);
+    virtual void Reserve(size_t size);
 
     size_t GetCommandsCount() const;
 
--- a/OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp	Mon Nov 10 18:26:07 2025 +0100
+++ b/OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp	Mon Nov 10 18:32:34 2025 +0100
@@ -375,6 +375,8 @@
     }
     else
     {
+      SetOfCommandsJob::Reserve(size);
+
       sopClassUids_.reserve(size);
       sopInstanceUids_.reserve(size);
     }
--- a/OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.h	Mon Nov 10 18:26:07 2025 +0100
+++ b/OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.h	Mon Nov 10 18:32:34 2025 +0100
@@ -78,7 +78,7 @@
     StorageCommitmentScpJob(ServerContext& context,
                             const Json::Value& serialized);
 
-    void Reserve(size_t size);
+    virtual void Reserve(size_t size) ORTHANC_OVERRIDE;
     
     void AddInstance(const std::string& sopClassUid,
                      const std::string& sopInstanceUid);