Mercurial > hg > orthanc
changeset 6388:cb0aeb02f56b
cppcheck: constParameterReference
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Wed, 12 Nov 2025 12:47:42 +0100 |
| parents | 32c736c4beb7 |
| children | 526d7182093a |
| files | OrthancServer/Sources/ServerJobs/ArchiveJob.cpp |
| diffstat | 1 files changed, 4 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp Wed Nov 12 10:26:18 2025 +0100 +++ b/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp Wed Nov 12 12:47:42 2025 +0100 @@ -838,7 +838,6 @@ void ApplyInternal(HierarchicalZipWriter& writer, - ServerContext& context, InstanceLoader& instanceLoader, size_t index, DicomDirWriter* dicomDir, @@ -889,7 +888,6 @@ // "media" flavor (with DICOMDIR) void Apply(HierarchicalZipWriter& writer, - ServerContext& context, InstanceLoader& instanceLoader, size_t index, DicomDirWriter& dicomDir, @@ -897,18 +895,17 @@ bool transcode, DicomTransferSyntax transferSyntax) const { - ApplyInternal(writer, context, instanceLoader, index, &dicomDir, dicomDirFolder, transcode, transferSyntax); + ApplyInternal(writer, instanceLoader, index, &dicomDir, dicomDirFolder, transcode, transferSyntax); } // "archive" flavor (without DICOMDIR) void Apply(HierarchicalZipWriter& writer, - ServerContext& context, InstanceLoader& instanceLoader, size_t index, bool transcode, DicomTransferSyntax transferSyntax) const { - ApplyInternal(writer, context, instanceLoader, index, NULL, "", transcode, transferSyntax); + ApplyInternal(writer, instanceLoader, index, NULL, "", transcode, transferSyntax); } void AddOpenDirectory(const std::string& filename) @@ -1238,13 +1235,13 @@ if (isMedia_) { assert(dicomDir_.get() != NULL); - commands_.Apply(*zip_, context_, instanceLoader_, index, *dicomDir_, + commands_.Apply(*zip_, instanceLoader_, index, *dicomDir_, MEDIA_IMAGES_FOLDER, transcode, transferSyntax); } else { assert(dicomDir_.get() == NULL); - commands_.Apply(*zip_, context_, instanceLoader_, index, transcode, transferSyntax); + commands_.Apply(*zip_, instanceLoader_, index, transcode, transferSyntax); } } }
