comparison Framework/Toolbox/SortedFrames.cpp @ 1485:60be4627ae52

fix for msvc2008
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Jun 2020 21:07:39 +0200
parents 5e3cfe87a873
children 5d892f5dd9c4
comparison
equal deleted inserted replaced
1484:121d01aa328e 1485:60be4627ae52
79 } 79 }
80 80
81 81
82 SortedFrames::Frame::Frame(const Instance& instance, 82 SortedFrames::Frame::Frame(const Instance& instance,
83 unsigned int frameIndex) : 83 unsigned int frameIndex) :
84 instance_(instance), 84 instance_(&instance),
85 frameIndex_(frameIndex) 85 frameIndex_(frameIndex)
86 { 86 {
87 if (frameIndex >= instance.GetNumberOfFrames()) 87 if (frameIndex >= instance.GetNumberOfFrames())
88 { 88 {
89 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 89 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);