summaryrefslogtreecommitdiff
path: root/core/string
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-20 21:49:32 +0200
committerGitHub <noreply@github.com>2021-07-20 21:49:32 +0200
commit693f9b4e20f76d56ead91f8a8cad204516d2d953 (patch)
treeeb98d46ce7bdef9fce187af3bcef7ebea7961a34 /core/string
parent3478690c0fd67efc4f269c08dc7093c04fbf86db (diff)
parenta6adb584934a885adf6ca775f2ef7118b66f684e (diff)
Merge pull request #50655 from JFonS/sname_opt
Editor StringName and Viewport optimizations
Diffstat (limited to 'core/string')
-rw-r--r--core/string/string_name.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/string/string_name.h b/core/string/string_name.h
index ead321c5b0..f5e7ff509d 100644
--- a/core/string/string_name.h
+++ b/core/string/string_name.h
@@ -167,6 +167,6 @@ bool operator!=(const char *p_name, const StringName &p_string_name);
StringName _scs_create(const char *p_chr, bool p_static = false);
-#define SNAME(m_arg) ([]() { static StringName sname = _scs_create(m_arg, true); return sname; })()
+#define SNAME(m_arg) ([]() -> const StringName & { static StringName sname = _scs_create(m_arg, true); return sname; })()
#endif // STRING_NAME_H