comparison OrthancServer/OrthancInitialization.cpp @ 656:08eca5d86aad

fixes to cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2013 11:19:31 +0100
parents a24b0161b171
children 5425bb6f1ea5
comparison
equal deleted inserted replaced
655:93adc693cc60 656:08eca5d86aad
142 142
143 try 143 try
144 { 144 {
145 RegisterUserMetadata(metadata, members[i]); 145 RegisterUserMetadata(metadata, members[i]);
146 } 146 }
147 catch (OrthancException e) 147 catch (OrthancException& e)
148 { 148 {
149 LOG(ERROR) << "Cannot register this user-defined metadata: " << info; 149 LOG(ERROR) << "Cannot register this user-defined metadata: " << info;
150 throw e; 150 throw e;
151 } 151 }
152 } 152 }
493 { 493 {
494 std::set<std::string> modalities; 494 std::set<std::string> modalities;
495 GetListOfDicomModalities(modalities); 495 GetListOfDicomModalities(modalities);
496 496
497 for (std::set<std::string>::const_iterator 497 for (std::set<std::string>::const_iterator
498 it = modalities.begin(); it != modalities.end(); it++) 498 it = modalities.begin(); it != modalities.end(); ++it)
499 { 499 {
500 try 500 try
501 { 501 {
502 std::string thisAet; 502 std::string thisAet;
503 GetDicomModalityUsingSymbolicName(*it, thisAet, address, port, manufacturer); 503 GetDicomModalityUsingSymbolicName(*it, thisAet, address, port, manufacturer);