Skip to content

Commit

Permalink
Fix clang-tidy use emplace_back instead of push_back warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 11, 2017
1 parent 2716127 commit b7f2144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/dwg/qgsdwgimporter.cpp
Expand Up @@ -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 ) );
}
}

Expand Down

0 comments on commit b7f2144

Please sign in to comment.