From 005b9aa148dc0010890dec6e157b5359da790ecc Mon Sep 17 00:00:00 2001 From: Karroffel Date: Tue, 11 Apr 2017 15:48:26 +0200 Subject: [PATCH] String.c_string() now returns char * --- include/godot_cpp/core/String.cpp | 2 +- include/godot_cpp/core/String.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/godot_cpp/core/String.cpp b/include/godot_cpp/core/String.cpp index 9b344c79..e2c2182b 100644 --- a/include/godot_cpp/core/String.cpp +++ b/include/godot_cpp/core/String.cpp @@ -126,7 +126,7 @@ String::operator NodePath() const return NodePath(*this); } -const wchar_t *String::c_string() const +const char *String::c_string() const { return godot_string_c_str(&_godot_string); } diff --git a/include/godot_cpp/core/String.hpp b/include/godot_cpp/core/String.hpp index 1beaf215..ee6532ea 100644 --- a/include/godot_cpp/core/String.hpp +++ b/include/godot_cpp/core/String.hpp @@ -65,7 +65,7 @@ public: operator NodePath() const; - const wchar_t *c_string() const; + const char *c_string() const; };