mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
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…
x
Reference in New Issue
Block a user