浏览代码

base: allow String::C() to be non-const.

undefined
Sam Hocevar 12 年前
父节点
当前提交
7cd3341504
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      src/lol/base/string.h

+ 6
- 0
src/lol/base/string.h 查看文件

@@ -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)
{


正在加载...
取消
保存