Mercurial > hg > orthanc
comparison Core/DicomParsing/ParsedDicomFile.cpp @ 4039:fa35465175b8
fix for msvc2008
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jun 2020 14:16:16 +0200 |
parents | cc6ed76bba27 |
children |
comparison
equal
deleted
inserted
replaced
4038:e072b4e33600 | 4039:fa35465175b8 |
---|---|
1049 try | 1049 try |
1050 { | 1050 { |
1051 // Same as "ReplacePlainString()", but with support for private creator | 1051 // Same as "ReplacePlainString()", but with support for private creator |
1052 const std::string& utf8Value = it->second->GetContent(); | 1052 const std::string& utf8Value = it->second->GetContent(); |
1053 | 1053 |
1054 if (it->first.IsPrivate() && privateCreators.find(it->first.GetGroup()) != privateCreators.end()) | 1054 std::map<uint16_t, std::string>::const_iterator found = privateCreators.find(it->first.GetGroup()); |
1055 | |
1056 if (it->first.IsPrivate() && | |
1057 found != privateCreators.end()) | |
1055 { | 1058 { |
1056 Replace(it->first, utf8Value, false, DicomReplaceMode_InsertIfAbsent, privateCreators.at(it->first.GetGroup())); | 1059 Replace(it->first, utf8Value, false, DicomReplaceMode_InsertIfAbsent, found->second); |
1057 } | 1060 } |
1058 else | 1061 else |
1059 { | 1062 { |
1060 Replace(it->first, utf8Value, false, DicomReplaceMode_InsertIfAbsent, defaultPrivateCreator); | 1063 Replace(it->first, utf8Value, false, DicomReplaceMode_InsertIfAbsent, defaultPrivateCreator); |
1061 } | 1064 } |