comparison Core/DicomNetworking/RemoteModalityParameters.cpp @ 2836:7133ad478eea

fix Debian warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Sep 2018 16:17:46 +0200
parents 73bc0c32547c
children 6eebc2eb3168
comparison
equal deleted inserted replaced
2831:b51233f03e7e 2836:7133ad478eea
84 throw OrthancException(ErrorCode_ParameterOutOfRange); 84 throw OrthancException(ErrorCode_ParameterOutOfRange);
85 } 85 }
86 86
87 SetPortNumber(static_cast<uint16_t>(tmp)); 87 SetPortNumber(static_cast<uint16_t>(tmp));
88 } 88 }
89 catch (std::runtime_error /* error inside JsonCpp */) 89 catch (std::runtime_error& /* error inside JsonCpp */)
90 { 90 {
91 try 91 try
92 { 92 {
93 SetPortNumber(boost::lexical_cast<uint16_t>(portValue.asString())); 93 SetPortNumber(boost::lexical_cast<uint16_t>(portValue.asString()));
94 } 94 }
95 catch (boost::bad_lexical_cast) 95 catch (boost::bad_lexical_cast&)
96 { 96 {
97 throw OrthancException(ErrorCode_BadFileFormat); 97 throw OrthancException(ErrorCode_BadFileFormat);
98 } 98 }
99 } 99 }
100 100