Minor performance wins.
This commit is contained in:
parent
5aae8e2fd0
commit
d05675f673
|
@ -224,7 +224,7 @@ void Prettify( std::string& aSource, char aQuoteChar )
|
||||||
++cursor;
|
++cursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
aSource = formatted;
|
aSource = std::move( formatted );
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace KICAD_FORMAT
|
} // namespace KICAD_FORMAT
|
||||||
|
|
|
@ -683,7 +683,7 @@ void VIEW::ReorderLayerData( std::unordered_map<int, int> aReorderMap )
|
||||||
new_map[pair.second].id = pair.second;
|
new_map[pair.second].id = pair.second;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_layers = new_map;
|
m_layers = std::move( new_map );
|
||||||
|
|
||||||
for( VIEW_ITEM* item : *m_allItems )
|
for( VIEW_ITEM* item : *m_allItems )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue