From bc0302fafeae6e45767520db4d26682fca31f196 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 1 Sep 2021 09:25:08 -0700 Subject: [PATCH] Replace RefDesCmp with better StrNumCmp --- eeschema/component_references_lister.cpp | 4 ++-- pcb_calculator/class_regulator_data.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/component_references_lister.cpp b/eeschema/component_references_lister.cpp index c521a99ae7..17e79637c7 100644 --- a/eeschema/component_references_lister.cpp +++ b/eeschema/component_references_lister.cpp @@ -35,7 +35,7 @@ #include #include -#include +#include #include #include #include @@ -130,7 +130,7 @@ bool SCH_REFERENCE_LIST::sortByRefAndValue( const SCH_REFERENCE& item1, bool SCH_REFERENCE_LIST::sortByReferenceOnly( const SCH_REFERENCE& item1, const SCH_REFERENCE& item2 ) { - int ii = UTIL::RefDesStringCompare( item1.GetRef(), item2.GetRef() ); + int ii = StrNumCmp( item1.GetRef(), item2.GetRef(), false ); if( ii == 0 ) ii = item1.m_unit - item2.m_unit; diff --git a/pcb_calculator/class_regulator_data.h b/pcb_calculator/class_regulator_data.h index 86449fbf39..d2941081a5 100644 --- a/pcb_calculator/class_regulator_data.h +++ b/pcb_calculator/class_regulator_data.h @@ -30,7 +30,7 @@ #ifndef CLASS_REGULATOR_DATA_H #define CLASS_REGULATOR_DATA_H -#include +#include #include @@ -81,7 +81,7 @@ public: for( ; ii < m_List.size(); ii++ ) { - if( UTIL::RefDesStringCompare( aItem->m_Name, m_List[ii]->m_Name ) < 0 ) + if( StrNumCmp( aItem->m_Name, m_List[ii]->m_Name, true ) < 0 ) break; }