Replace unshared boost::shared_array with std::unique_ptr

This commit is contained in:
Simon Richter 2016-06-08 09:43:07 +02:00 committed by Maciej Suminski
parent d78a68356f
commit 2928cb7419
1 changed files with 2 additions and 2 deletions

View File

@ -633,7 +633,7 @@ void OPENGL_GAL::DrawPolygon( const std::deque<VECTOR2D>& aPointList )
gluTessBeginPolygon( tesselator, &params ); gluTessBeginPolygon( tesselator, &params );
gluTessBeginContour( tesselator ); gluTessBeginContour( tesselator );
boost::shared_array<GLdouble> points( new GLdouble[3 * aPointList.size()] ); std::unique_ptr<GLdouble[]> points( new GLdouble[ 3 * aPointList.size() ] );
int v = 0; int v = 0;
for( std::deque<VECTOR2D>::const_iterator it = aPointList.begin(); it != aPointList.end(); ++it ) for( std::deque<VECTOR2D>::const_iterator it = aPointList.begin(); it != aPointList.end(); ++it )
@ -666,7 +666,7 @@ void OPENGL_GAL::DrawPolygon( const VECTOR2D aPointList[], int aListSize )
gluTessBeginPolygon( tesselator, &params ); gluTessBeginPolygon( tesselator, &params );
gluTessBeginContour( tesselator ); gluTessBeginContour( tesselator );
boost::shared_array<GLdouble> points( new GLdouble[3 * aListSize] ); std::unique_ptr<GLdouble[]> points( new GLdouble[3 * aListSize] );
int v = 0; int v = 0;
const VECTOR2D* ptr = aPointList; const VECTOR2D* ptr = aPointList;