comparison Framework/PostgreSQL/PostgreSQLParameters.cpp @ 252:33fa478c119a

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Apr 2021 13:33:48 +0200
parents 3236894320d6
children 16aac0287485
comparison
equal deleted inserted replaced
251:ed12248ad791 252:33fa478c119a
148 host_ = host; 148 host_ = host;
149 } 149 }
150 150
151 void PostgreSQLParameters::SetPortNumber(unsigned int port) 151 void PostgreSQLParameters::SetPortNumber(unsigned int port)
152 { 152 {
153 if (port <= 0 || 153 if (port == 0 ||
154 port >= 65535) 154 port >= 65535)
155 { 155 {
156 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 156 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
157 } 157 }
158 158