Fix compile error for old compilers

This commit is contained in:
Seth Hillbrand 2019-12-02 07:19:13 -08:00
parent 61f593f350
commit 5c056c2a3e
1 changed files with 4 additions and 4 deletions

View File

@ -324,10 +324,10 @@ public:
void SortRows( int aSortCol, bool ascending )
{
std::sort( m_rows.begin(), m_rows.end(),
[ aSortCol, ascending, this ]( LIB_PINS& lhs, LIB_PINS& rhs ) -> bool
{
return compare( lhs, rhs, aSortCol, ascending, m_userUnits );
} );
[ aSortCol, ascending, this ]( const LIB_PINS& lhs, const LIB_PINS& rhs ) -> bool
{
return compare( lhs, rhs, aSortCol, ascending, m_userUnits );
} );
}
void SortPins( LIB_PINS& aRow )