comparison OrthancStone/Sources/Oracle/GetOrthancWebViewerJpegCommand.cpp @ 1571:85e117739eca

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2020 17:46:39 +0200
parents 244ad1e4e76a
children 4fb8fdf03314
comparison
equal deleted inserted replaced
1570:9a04f42098a3 1571:85e117739eca
48 } 48 }
49 49
50 50
51 void GetOrthancWebViewerJpegCommand::SetQuality(unsigned int quality) 51 void GetOrthancWebViewerJpegCommand::SetQuality(unsigned int quality)
52 { 52 {
53 if (quality <= 0 || 53 if (quality == 0 ||
54 quality > 100) 54 quality > 100)
55 { 55 {
56 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 56 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
57 } 57 }
58 else 58 else