Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerJobs/ArchiveJob.cpp @ 5109:027366cae766
cppcheck
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 22 Nov 2022 12:57:10 +0100 |
parents | a386dfb5b386 |
children | 8b74aa4f3515 |
comparison
equal
deleted
inserted
replaced
5108:a386dfb5b386 | 5109:027366cae766 |
---|---|
645 return; | 645 return; |
646 } | 646 } |
647 | 647 |
648 writer.OpenFile(filename_.c_str()); | 648 writer.OpenFile(filename_.c_str()); |
649 | 649 |
650 bool transcodeSuccess = false; | |
651 | |
652 std::unique_ptr<ParsedDicomFile> parsed; | 650 std::unique_ptr<ParsedDicomFile> parsed; |
653 | 651 |
654 if (!transcodeSuccess) | 652 writer.Write(content); |
653 | |
654 if (dicomDir != NULL) | |
655 { | 655 { |
656 writer.Write(content); | 656 if (parsed.get() == NULL) |
657 | |
658 if (dicomDir != NULL) | |
659 { | 657 { |
660 if (parsed.get() == NULL) | 658 parsed.reset(new ParsedDicomFile(content)); |
661 { | |
662 parsed.reset(new ParsedDicomFile(content)); | |
663 } | |
664 | |
665 dicomDir->Add(dicomDirFolder, filename_, *parsed); | |
666 } | 659 } |
660 | |
661 dicomDir->Add(dicomDirFolder, filename_, *parsed); | |
667 } | 662 } |
668 | 663 |
669 break; | 664 break; |
670 } | 665 } |
671 | 666 |