Skip to content
Permalink
Browse files

Fix clang-tidy use emplace_back instead of push_back warnings

  • Loading branch information
nyalldawson committed Sep 11, 2017
1 parent 2716127 commit b7f21446d9daa69c1acc42e1cffd0d9b27405b6e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/dwg/qgsdwgimporter.cpp
@@ -2040,15 +2040,15 @@ void QgsDwgImporter::addSpline( const DRW_Spline *data )
for ( size_t i = 0; i < data->controllist.size(); ++i )
{
const DRW_Coord &p = *data->controllist[i];
cps.push_back( QgsVector( p.x, p.y ) );
cps.emplace_back( QgsVector( p.x, p.y ) );
}

if ( data->ncontrol == 0 && data->degree != 2 )
{
for ( std::vector<DRW_Coord *>::size_type i = 0; i < data->fitlist.size(); ++i )
{
const DRW_Coord &p = *data->fitlist[i];
cps.push_back( QgsVector( p.x, p.y ) );
cps.emplace_back( QgsVector( p.x, p.y ) );
}
}

0 comments on commit b7f2144

Please sign in to comment.
You can’t perform that action at this time.