Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerIndex.cpp @ 4507:b4c58795f3a8
widening the use of DicomTransferSyntax enum
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Feb 2021 09:33:48 +0100 |
parents | ac69c9f76c71 |
children | 5b929e6b3c36 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.cpp Wed Feb 10 17:01:44 2021 +0100 +++ b/OrthancServer/Sources/ServerIndex.cpp Thu Feb 11 09:33:48 2021 +0100 @@ -761,7 +761,7 @@ const DicomInstanceOrigin& origin, bool overwrite, bool hasTransferSyntax, - const std::string& transferSyntax, + DicomTransferSyntax transferSyntax, bool hasPixelDataOffset, uint64_t pixelDataOffset) { @@ -946,7 +946,8 @@ { // New in Orthanc 1.2.0 SetInstanceMetadata(content, instanceMetadata, instanceId, - MetadataType_Instance_TransferSyntax, transferSyntax); + MetadataType_Instance_TransferSyntax, + GetTransferSyntaxUid(transferSyntax)); } { @@ -2532,10 +2533,10 @@ } { - std::string s; + DicomTransferSyntax s; if (dicom.LookupTransferSyntax(s)) { - db_.SetMetadata(instance, MetadataType_Instance_TransferSyntax, s); + db_.SetMetadata(instance, MetadataType_Instance_TransferSyntax, GetTransferSyntaxUid(s)); } }