Add const lvalue ref to container parameters

This commit is contained in:
Muller-Castro
2021-08-01 16:47:20 -03:00
parent 89cc635c05
commit 96a95cb974
68 changed files with 185 additions and 185 deletions

View File

@@ -1243,7 +1243,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
if (cant_be_set_unique_names.size()) {
String popup_text = TTR("Unique names already used by another node in the scene:");
popup_text += "\n";
for (StringName name : cant_be_set_unique_names) {
for (const StringName &name : cant_be_set_unique_names) {
popup_text += "\n" + String(name);
}
accept->set_text(popup_text);