diff --git a/eeschema/symbol_tree_model_adapter.cpp b/eeschema/symbol_tree_model_adapter.cpp index 192e4cdc49..c4837eb19e 100644 --- a/eeschema/symbol_tree_model_adapter.cpp +++ b/eeschema/symbol_tree_model_adapter.cpp @@ -121,7 +121,7 @@ bool SYMBOL_TREE_MODEL_ADAPTER::AddLibraries( const std::vector& aNick PROJECT_FILE& project = aFrame->Prj().GetProjectFile(); auto addFunc = - [&]( const wxString& aLibName, std::vector aSymbolList, + [&]( const wxString& aLibName, const std::vector& aSymbolList, const wxString& aDescription ) { std::vector treeItems( aSymbolList.begin(), aSymbolList.end() ); diff --git a/pcbnew/router/pns_itemset.cpp b/pcbnew/router/pns_itemset.cpp index 2bf3ba7a97..33eb194da8 100644 --- a/pcbnew/router/pns_itemset.cpp +++ b/pcbnew/router/pns_itemset.cpp @@ -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; }