This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
base: allow String::C() to be non-const.
undefined
Sam Hocevar
11 years ago
parent
af695ca56c
commit
7cd3341504
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
src/lol/base/string.h
+ 6
- 0
src/lol/base/string.h
View File
@@ -101,6 +101,12 @@ public:
return &(*this)[0];
}
/* Non-const version; make sure to not overflow the internal array */
inline char *C()
{
return &(*this)[0];
}
/* Does not initialise the newly allocated characters */
void Resize(int count)
{
Write
Preview
Loading…
Cancel
Save