comparison Framework/Deprecated/Toolbox/ParallelSlices.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
141 } 141 }
142 142
143 143
144 ParallelSlices* ParallelSlices::Reverse() const 144 ParallelSlices* ParallelSlices::Reverse() const
145 { 145 {
146 std::auto_ptr<ParallelSlices> reversed(new ParallelSlices); 146 std::unique_ptr<ParallelSlices> reversed(new ParallelSlices);
147 147
148 for (size_t i = slices_.size(); i > 0; i--) 148 for (size_t i = slices_.size(); i > 0; i--)
149 { 149 {
150 const OrthancStone::CoordinateSystem3D& slice = *slices_[i - 1]; 150 const OrthancStone::CoordinateSystem3D& slice = *slices_[i - 1];
151 151
162 OrthancStone::VolumeProjection projection) 162 OrthancStone::VolumeProjection projection)
163 { 163 {
164 const OrthancStone::Vector dimensions = geometry.GetVoxelDimensions(OrthancStone::VolumeProjection_Axial); 164 const OrthancStone::Vector dimensions = geometry.GetVoxelDimensions(OrthancStone::VolumeProjection_Axial);
165 const OrthancStone::CoordinateSystem3D& axial = geometry.GetAxialGeometry(); 165 const OrthancStone::CoordinateSystem3D& axial = geometry.GetAxialGeometry();
166 166
167 std::auto_ptr<ParallelSlices> result(new ParallelSlices); 167 std::unique_ptr<ParallelSlices> result(new ParallelSlices);
168 168
169 switch (projection) 169 switch (projection)
170 { 170 {
171 case OrthancStone::VolumeProjection_Axial: 171 case OrthancStone::VolumeProjection_Axial:
172 for (unsigned int z = 0; z < geometry.GetDepth(); z++) 172 for (unsigned int z = 0; z < geometry.GetDepth(); z++)