Mercurial > hg > orthanc
comparison OrthancServer/FromDcmtkBridge.cpp @ 656:08eca5d86aad
fixes to cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Nov 2013 11:19:31 +0100 |
parents | 7a966b440f19 |
children | d233b5090105 |
comparison
equal
deleted
inserted
replaced
655:93adc693cc60 | 656:08eca5d86aad |
---|---|
621 privateTags.push_back(element); | 621 privateTags.push_back(element); |
622 } | 622 } |
623 } | 623 } |
624 | 624 |
625 for (Tags::iterator it = privateTags.begin(); | 625 for (Tags::iterator it = privateTags.begin(); |
626 it != privateTags.end(); it++) | 626 it != privateTags.end(); ++it) |
627 { | 627 { |
628 DcmElement* tmp = dataset.remove(*it); | 628 DcmElement* tmp = dataset.remove(*it); |
629 if (tmp != NULL) | 629 if (tmp != NULL) |
630 { | 630 { |
631 delete tmp; | 631 delete tmp; |
1491 | 1491 |
1492 | 1492 |
1493 void FromDcmtkBridge::Print(FILE* fp, const DicomMap& m) | 1493 void FromDcmtkBridge::Print(FILE* fp, const DicomMap& m) |
1494 { | 1494 { |
1495 for (DicomMap::Map::const_iterator | 1495 for (DicomMap::Map::const_iterator |
1496 it = m.map_.begin(); it != m.map_.end(); it++) | 1496 it = m.map_.begin(); it != m.map_.end(); ++it) |
1497 { | 1497 { |
1498 DicomTag t = it->first; | 1498 DicomTag t = it->first; |
1499 std::string s = it->second->AsString(); | 1499 std::string s = it->second->AsString(); |
1500 fprintf(fp, "0x%04x 0x%04x (%s) [%s]\n", t.GetGroup(), t.GetElement(), GetName(t).c_str(), s.c_str()); | 1500 fprintf(fp, "0x%04x 0x%04x (%s) [%s]\n", t.GetGroup(), t.GetElement(), GetName(t).c_str(), s.c_str()); |
1501 } | 1501 } |
1511 } | 1511 } |
1512 | 1512 |
1513 result.clear(); | 1513 result.clear(); |
1514 | 1514 |
1515 for (DicomMap::Map::const_iterator | 1515 for (DicomMap::Map::const_iterator |
1516 it = values.map_.begin(); it != values.map_.end(); it++) | 1516 it = values.map_.begin(); it != values.map_.end(); ++it) |
1517 { | 1517 { |
1518 result[GetName(it->first)] = it->second->AsString(); | 1518 result[GetName(it->first)] = it->second->AsString(); |
1519 } | 1519 } |
1520 } | 1520 } |
1521 | 1521 |