Mercurial > hg > orthanc
comparison OrthancServer/OrthancFindRequestHandler.cpp @ 4028:1ac958787c01
fix for msvc2008
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Jun 2020 16:34:19 +0200 |
parents | 320cde762fd9 |
children | c6e82885f570 |
comparison
equal
deleted
inserted
replaced
4027:3a77d4073adf | 4028:1ac958787c01 |
---|---|
397 content.append(item); | 397 content.append(item); |
398 } | 398 } |
399 | 399 |
400 if (tag->IsPrivate()) | 400 if (tag->IsPrivate()) |
401 { | 401 { |
402 if (privateCreators.find(tag->GetGroup()) != privateCreators.end()) | 402 std::map<uint16_t, std::string>::const_iterator found = privateCreators.find(tag->GetGroup()); |
403 | |
404 if (found != privateCreators.end()) | |
403 { | 405 { |
404 dicom.Replace(*tag, content, false, DicomReplaceMode_InsertIfAbsent, privateCreators.at(tag->GetGroup()).c_str()); | 406 dicom.Replace(*tag, content, false, DicomReplaceMode_InsertIfAbsent, found->second.c_str()); |
405 } | 407 } |
406 else | 408 else |
407 { | 409 { |
408 dicom.Replace(*tag, content, false, DicomReplaceMode_InsertIfAbsent, defaultPrivateCreator); | 410 dicom.Replace(*tag, content, false, DicomReplaceMode_InsertIfAbsent, defaultPrivateCreator); |
409 } | 411 } |