diff --git a/pcbnew/router/pns_line.cpp b/pcbnew/router/pns_line.cpp index d9401599ed..2c0a975c6b 100644 --- a/pcbnew/router/pns_line.cpp +++ b/pcbnew/router/pns_line.cpp @@ -879,8 +879,8 @@ void LINE::ClipVertexRange( int aStart, int aEnd ) int arcIdx = -1; int linkIdx = 0; - const std::vector& shapes = m_line.CShapes(); - int numPoints = static_cast( shapes.size() ); + auto shapes = m_line.CShapes(); + int numPoints = static_cast( shapes.size() ); for( int i = 0; i < m_line.PointCount(); i++ ) {