Fix a compil issue with gcc 4.8.4
Fixes: lp:1735909 https://bugs.launchpad.net/kicad/+bug/1735909
This commit is contained in:
parent
3e38b3dca3
commit
3109343b96
|
@ -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() );
|
||||
}
|
||||
|
|
|
@ -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() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue