comparison Resources/Graveyard/ReferenceLineFactory.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
comparison
equal deleted inserted replaced
1296:86400fa16091 1298:8a0a62189f46
99 99
100 if (GeometryToolbox::ClipLineToRectangle(x1, y1, x2, y2, 100 if (GeometryToolbox::ClipLineToRectangle(x1, y1, x2, y2,
101 x1, y1, x2, y2, 101 x1, y1, x2, y2,
102 sx1, sy1, sx2, sy2)) 102 sx1, sy1, sx2, sy2))
103 { 103 {
104 std::auto_ptr<ILayerRenderer> layer(new LineLayerRenderer(x1, y1, x2, y2)); 104 std::unique_ptr<ILayerRenderer> layer(new LineLayerRenderer(x1, y1, x2, y2));
105 layer->SetLayerStyle(style_); 105 layer->SetLayerStyle(style_);
106 return layer.release(); 106 return layer.release();
107 } 107 }
108 else 108 else
109 { 109 {