nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gamnit: fix X position of first char of a TextSprites
[nit.git]
/
lib
/
cpp.nit
diff --git
a/lib/cpp.nit
b/lib/cpp.nit
index
a09d634
..
f5c1a19
100644
(file)
--- a/
lib/cpp.nit
+++ b/
lib/cpp.nit
@@
-28,7
+28,7
@@
redef class Text
fun to_cpp_string: CppString do return to_cstring.to_cpp_string(length)
end
-redef class NativeString
+redef class CString
# Get `self` as a `CppString`
fun to_cpp_string(length: Int): CppString in "C++" `{
return new std::string(self, length);