Minor performance wins.

This commit is contained in:
Jeff Young 2024-01-04 16:26:32 +00:00
parent 5aae8e2fd0
commit d05675f673
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ void Prettify( std::string& aSource, char aQuoteChar )
++cursor;
}
aSource = formatted;
aSource = std::move( formatted );
}
} // namespace KICAD_FORMAT

View File

@ -683,7 +683,7 @@ void VIEW::ReorderLayerData( std::unordered_map<int, int> aReorderMap )
new_map[pair.second].id = pair.second;
}
m_layers = new_map;
m_layers = std::move( new_map );
for( VIEW_ITEM* item : *m_allItems )
{