summaryrefslogtreecommitdiffstats
path: root/editor/localization_editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/localization_editor.cpp')
-rw-r--r--editor/localization_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/localization_editor.cpp b/editor/localization_editor.cpp
index fb34740318..71906b58e7 100644
--- a/editor/localization_editor.cpp
+++ b/editor/localization_editor.cpp
@@ -545,7 +545,7 @@ void LocalizationEditor::update_translations() {
PackedStringArray selected = remaps[keys[i]];
for (int j = 0; j < selected.size(); j++) {
- String s2 = selected[j];
+ const String &s2 = selected[j];
int qp = s2.rfind(":");
String path = s2.substr(0, qp);
String locale = s2.substr(qp + 1, s2.length());