From 5c056c2a3e0bca592c35f2341e13fd7402c59924 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 2 Dec 2019 07:19:13 -0800 Subject: [PATCH] Fix compile error for old compilers --- eeschema/dialogs/dialog_lib_edit_pin_table.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/dialogs/dialog_lib_edit_pin_table.cpp b/eeschema/dialogs/dialog_lib_edit_pin_table.cpp index 8e084f7ebf..eb2ccc4887 100644 --- a/eeschema/dialogs/dialog_lib_edit_pin_table.cpp +++ b/eeschema/dialogs/dialog_lib_edit_pin_table.cpp @@ -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 )