Mercurial > hg > orthanc
diff OrthancServer/Sources/OrthancWebDav.cpp @ 4386:3ea753570c6d
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 18 Dec 2020 12:15:45 +0100 |
parents | 79ef2b6d8e76 |
children | d9473bd5ed43 |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancWebDav.cpp Fri Dec 18 11:48:40 2020 +0100 +++ b/OrthancServer/Sources/OrthancWebDav.cpp Fri Dec 18 12:15:45 2020 +0100 @@ -1274,16 +1274,16 @@ // New in Orthanc 1.8.2 std::unique_ptr<ZipReader> reader(ZipReader::CreateFromMemory(content)); - std::string filename, content; - while (reader->ReadNextFile(filename, content)) + std::string filename, uncompressedFile; + while (reader->ReadNextFile(filename, uncompressedFile)) { - if (!content.empty()) + if (!uncompressedFile.empty()) { LOG(INFO) << "Uploading DICOM file extracted from a ZIP archive in WebDAV: " << filename; DicomInstanceToStore instance; instance.SetOrigin(DicomInstanceOrigin::FromWebDav()); - instance.SetBuffer(content.c_str(), content.size()); + instance.SetBuffer(uncompressedFile.c_str(), uncompressedFile.size()); std::string publicId;