comparison OrthancStone/Sources/Loaders/BasicFetchingStrategy.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
56 } 56 }
57 57
58 58
59 void BasicFetchingStrategy::SetBlockSize(unsigned int size) 59 void BasicFetchingStrategy::SetBlockSize(unsigned int size)
60 { 60 {
61 if (size <= 0) 61 if (size == 0)
62 { 62 {
63 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 63 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
64 } 64 }
65 65
66 blockSize_ = size; 66 blockSize_ = size;