summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-04-11 15:48:26 +0200
committerKarroffel <therzog@mail.de>2017-04-11 15:48:26 +0200
commit005b9aa148dc0010890dec6e157b5359da790ecc (patch)
tree6fdad8dc2f261d4a304055ab2a90e94ce469aed4 /include/godot_cpp
parente16e2fe308a97bc417d2728936f7f8fdd95f7751 (diff)
downloadredot-cpp-005b9aa148dc0010890dec6e157b5359da790ecc.tar.gz
String.c_string() now returns char *
Diffstat (limited to 'include/godot_cpp')
-rw-r--r--include/godot_cpp/core/String.cpp2
-rw-r--r--include/godot_cpp/core/String.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/godot_cpp/core/String.cpp b/include/godot_cpp/core/String.cpp
index 9b344c7..e2c2182 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 1beaf21..ee6532e 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;
};