Mercurial > hg > orthanc-stone
comparison Framework/Volumes/ImageBuffer3D.cpp @ 1298:8a0a62189f46
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 16:31:30 +0100 |
parents | 2d8ab34c8c91 |
children | 30deba7bc8e2 |
comparison
equal
deleted
inserted
replaced
1296:86400fa16091 | 1298:8a0a62189f46 |
---|---|
79 if (slice >= width_) | 79 if (slice >= width_) |
80 { | 80 { |
81 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); | 81 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); |
82 } | 82 } |
83 | 83 |
84 std::auto_ptr<Orthanc::Image> result(new Orthanc::Image(format_, height_, depth_, false)); | 84 std::unique_ptr<Orthanc::Image> result(new Orthanc::Image(format_, height_, depth_, false)); |
85 //LOG(TRACE) << "ImageBuffer3D::ExtractSagittalSlice result will be an image of WIDTH = " << height_ << " and HEIGHT = " << depth_; | 85 //LOG(TRACE) << "ImageBuffer3D::ExtractSagittalSlice result will be an image of WIDTH = " << height_ << " and HEIGHT = " << depth_; |
86 | 86 |
87 unsigned int bytesPerPixel = Orthanc::GetBytesPerPixel(format_); | 87 unsigned int bytesPerPixel = Orthanc::GetBytesPerPixel(format_); |
88 | 88 |
89 for (unsigned int z = 0; z < depth_; z++) | 89 for (unsigned int z = 0; z < depth_; z++) |