Fix a compil issue with gcc 4.8.4

Fixes: lp:1735909
https://bugs.launchpad.net/kicad/+bug/1735909
This commit is contained in:
jean-pierre charras 2017-12-02 14:22:43 +01:00
parent 3e38b3dca3
commit 3109343b96
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ void SCH_EDIT_FRAME::GetSchematicConnections( std::vector< wxPoint >& aConnectio
// We always have some overlapping connection points. Drop duplicates here
std::sort( aConnections.begin(), aConnections.end(),
[]( wxPoint& a, wxPoint& b ) -> bool
[]( const wxPoint& a, const wxPoint& b ) -> bool
{ return a.x < b.x || (a.x == b.x && a.y < b.y); } );
aConnections.erase( unique( aConnections.begin(), aConnections.end() ), aConnections.end() );
}

View File

@ -136,7 +136,7 @@ void SCH_EDIT_FRAME::CheckJunctionsInList( PICKED_ITEMS_LIST& aItemsList, bool a
// We always have some overlapping connection points. Drop duplicates here
std::sort( pts.begin(), pts.end(),
[]( wxPoint& a, wxPoint& b ) -> bool
[]( const wxPoint& a, const wxPoint& b ) -> bool
{ return a.x < b.x || (a.x == b.x && a.y < b.y); } );
pts.erase( unique( pts.begin(), pts.end() ), pts.end() );