Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp Wed Oct 30 11:56:28 2013 +0100 +++ b/OrthancServer/OrthancInitialization.cpp Mon Nov 04 11:19:31 2013 +0100 @@ -144,7 +144,7 @@ { RegisterUserMetadata(metadata, members[i]); } - catch (OrthancException e) + catch (OrthancException& e) { LOG(ERROR) << "Cannot register this user-defined metadata: " << info; throw e; @@ -495,7 +495,7 @@ GetListOfDicomModalities(modalities); for (std::set<std::string>::const_iterator - it = modalities.begin(); it != modalities.end(); it++) + it = modalities.begin(); it != modalities.end(); ++it) { try {