summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-02-06 17:03:11 +0100
committerGitHub <noreply@github.com>2022-02-06 17:03:11 +0100
commit79a4d782a5ef0801fb65ee8c8a488942044c8e10 (patch)
tree28da6865bd5f3e92dc0852ff60cafc74329857b7 /editor/code_editor.cpp
parente38df41de8f20516ab8b2c91bedb4388cd9e41aa (diff)
parent1ce81dc5f2bd5db8bff0e60af846b994492810f9 (diff)
downloadredot-engine-79a4d782a5ef0801fb65ee8c8a488942044c8e10.tar.gz
Merge pull request #57709 from jmb462/missing-sname-optimization
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r--editor/code_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 967f7e0d1f..2627baaea8 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -884,8 +884,8 @@ Ref<Texture2D> CodeTextEditor::_get_completion_icon(const ScriptCodeCompletionOp
Ref<Texture2D> tex;
switch (p_option.kind) {
case ScriptCodeCompletionOption::KIND_CLASS: {
- if (has_theme_icon(p_option.display, "EditorIcons")) {
- tex = get_theme_icon(p_option.display, "EditorIcons");
+ if (has_theme_icon(p_option.display, SNAME("EditorIcons"))) {
+ tex = get_theme_icon(p_option.display, SNAME("EditorIcons"));
} else {
tex = get_theme_icon(SNAME("Object"), SNAME("EditorIcons"));
}