summaryrefslogtreecommitdiffstats
path: root/editor/editor_help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r--editor/editor_help.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index 2b1ab4ca02..cdb187bd44 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -2867,10 +2867,10 @@ void EditorHelpTooltip::parse_tooltip(const String &p_text) {
PackedStringArray slices = p_text.split("|", true, 3);
ERR_FAIL_COND_MSG(slices.size() < 4, "Invalid tooltip formatting. The expect string should be formatted as 'type|class|property|args'.");
- String type = slices[0];
- String class_name = slices[1];
- String property_name = slices[2];
- String property_args = slices[3];
+ const String &type = slices[0];
+ const String &class_name = slices[1];
+ const String &property_name = slices[2];
+ const String &property_args = slices[3];
String title;
String description;