performance efficiencies

This commit is contained in:
Jeff Young 2023-12-18 18:36:02 +00:00
parent 8251fca66a
commit e4baf877c8
2 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@ bool SYMBOL_TREE_MODEL_ADAPTER::AddLibraries( const std::vector<wxString>& aNick
PROJECT_FILE& project = aFrame->Prj().GetProjectFile();
auto addFunc =
[&]( const wxString& aLibName, std::vector<LIB_SYMBOL*> aSymbolList,
[&]( const wxString& aLibName, const std::vector<LIB_SYMBOL*>& aSymbolList,
const wxString& aDescription )
{
std::vector<LIB_TREE_ITEM*> treeItems( aSymbolList.begin(), aSymbolList.end() );

View File

@ -61,7 +61,7 @@ ITEM_SET& ITEM_SET::FilterLayers( int aStart, int aEnd, bool aInvert )
newItems.push_back( item );
}
m_items = newItems;
m_items = std::move( newItems );
return *this;
}
@ -77,7 +77,7 @@ ITEM_SET& ITEM_SET::FilterKinds( int aKindMask, bool aInvert )
newItems.push_back( item );
}
m_items = newItems;
m_items = std::move( newItems );
return *this;
}
@ -93,7 +93,7 @@ ITEM_SET& ITEM_SET::FilterMarker( int aMarker, bool aInvert )
newItems.push_back( item );
}
m_items = newItems;
m_items = std::move( newItems );
return *this;
}
@ -109,7 +109,7 @@ ITEM_SET& ITEM_SET::FilterNet( NET_HANDLE aNet, bool aInvert )
newItems.push_back( item );
}
m_items = newItems;
m_items = std::move( newItems );
return *this;
}
@ -125,7 +125,7 @@ ITEM_SET& ITEM_SET::ExcludeItem( const ITEM* aItem )
newItems.push_back( item );
}
m_items = newItems;
m_items = std::move( newItems );
return *this;
}