Mercurial > hg > orthanc-stone
comparison Framework/dev.h @ 216:c4ea26865975
fix warning, size_t is always > 0
author | am@osimis.io |
---|---|
date | Thu, 07 Jun 2018 10:10:46 +0200 |
parents | 5412adf19980 |
children | 3d523c9a8f0d 192e6e349e69 |
comparison
equal
deleted
inserted
replaced
215:07792a582de9 | 216:c4ea26865975 |
---|---|
446 } | 446 } |
447 } | 447 } |
448 | 448 |
449 Slice* GetSlice(size_t slice) const | 449 Slice* GetSlice(size_t slice) const |
450 { | 450 { |
451 if (slice < 0 || | 451 if (slice >= depth_) |
452 slice >= depth_) | |
453 { | 452 { |
454 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); | 453 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); |
455 } | 454 } |
456 else | 455 else |
457 { | 456 { |