performance efficiencies
This commit is contained in:
parent
8251fca66a
commit
e4baf877c8
|
@ -121,7 +121,7 @@ bool SYMBOL_TREE_MODEL_ADAPTER::AddLibraries( const std::vector<wxString>& aNick
|
||||||
PROJECT_FILE& project = aFrame->Prj().GetProjectFile();
|
PROJECT_FILE& project = aFrame->Prj().GetProjectFile();
|
||||||
|
|
||||||
auto addFunc =
|
auto addFunc =
|
||||||
[&]( const wxString& aLibName, std::vector<LIB_SYMBOL*> aSymbolList,
|
[&]( const wxString& aLibName, const std::vector<LIB_SYMBOL*>& aSymbolList,
|
||||||
const wxString& aDescription )
|
const wxString& aDescription )
|
||||||
{
|
{
|
||||||
std::vector<LIB_TREE_ITEM*> treeItems( aSymbolList.begin(), aSymbolList.end() );
|
std::vector<LIB_TREE_ITEM*> treeItems( aSymbolList.begin(), aSymbolList.end() );
|
||||||
|
|
|
@ -61,7 +61,7 @@ ITEM_SET& ITEM_SET::FilterLayers( int aStart, int aEnd, bool aInvert )
|
||||||
newItems.push_back( item );
|
newItems.push_back( item );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_items = newItems;
|
m_items = std::move( newItems );
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ ITEM_SET& ITEM_SET::FilterKinds( int aKindMask, bool aInvert )
|
||||||
newItems.push_back( item );
|
newItems.push_back( item );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_items = newItems;
|
m_items = std::move( newItems );
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ ITEM_SET& ITEM_SET::FilterMarker( int aMarker, bool aInvert )
|
||||||
newItems.push_back( item );
|
newItems.push_back( item );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_items = newItems;
|
m_items = std::move( newItems );
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ ITEM_SET& ITEM_SET::FilterNet( NET_HANDLE aNet, bool aInvert )
|
||||||
newItems.push_back( item );
|
newItems.push_back( item );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_items = newItems;
|
m_items = std::move( newItems );
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,7 @@ ITEM_SET& ITEM_SET::ExcludeItem( const ITEM* aItem )
|
||||||
newItems.push_back( item );
|
newItems.push_back( item );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_items = newItems;
|
m_items = std::move( newItems );
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue