summaryrefslogtreecommitdiff
path: root/core/string
diff options
context:
space:
mode:
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