summaryrefslogtreecommitdiffstats
path: root/modules/mono/glue/string_name_glue.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2020-07-05 19:19:36 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2020-07-05 19:19:36 +0200
commit2511c439727226f64def8b15b38d084db187cf55 (patch)
treef56b1716af16025a32795691161b75c8a0362fb9 /modules/mono/glue/string_name_glue.cpp
parent772f693e5b8b5912d422e8effb8d6a72260edcfc (diff)
downloadredot-engine-2511c439727226f64def8b15b38d084db187cf55.tar.gz
Mono/C#: Fix several clang-tidy warnings and cleanup
Diffstat (limited to 'modules/mono/glue/string_name_glue.cpp')
-rw-r--r--modules/mono/glue/string_name_glue.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/mono/glue/string_name_glue.cpp b/modules/mono/glue/string_name_glue.cpp
index 81006e5849..4b2e88569b 100644
--- a/modules/mono/glue/string_name_glue.cpp
+++ b/modules/mono/glue/string_name_glue.cpp
@@ -28,12 +28,13 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
-#include "string_name_glue.h"
-
#ifdef MONO_GLUE_ENABLED
+#include "core/string_name.h"
#include "core/ustring.h"
+#include "../mono_gd/gd_mono_marshal.h"
+
StringName *godot_icall_StringName_Ctor(MonoString *p_path) {
return memnew(StringName(GDMonoMarshal::mono_string_to_godot(p_path)));
}
@@ -48,7 +49,7 @@ MonoString *godot_icall_StringName_operator_String(StringName *p_np) {
}
MonoBoolean godot_icall_StringName_is_empty(StringName *p_ptr) {
- return (MonoBoolean)(p_ptr == StringName());
+ return (MonoBoolean)(*p_ptr == StringName());
}
void godot_register_string_name_icalls() {