nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/core/flat: Optimized use of escape_to_c for FlatText
[nit.git]
/
lib
/
cpp.nit
diff --git
a/lib/cpp.nit
b/lib/cpp.nit
index
78bb96c
..
a2896d3
100644
(file)
--- a/
lib/cpp.nit
+++ b/
lib/cpp.nit
@@
-31,6
+31,6
@@
end
redef class NativeString
# Get `self` as a `CppString`
fun to_cpp_string(length: Int): CppString in "C++" `{
- return new std::string(recv, length);
+ return new std::string(self, length);
`}
end