comparison Resources/Graveyard/ReferenceLineFactory.cpp @ 1299:c38c89684d83 broker

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 17:21:24 +0100
parents 2d8ab34c8c91
children
comparison
equal deleted inserted replaced
1297:6ab03e429f06 1299:c38c89684d83
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 {