Pārlūkot izejas kodu

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

undefined
Sam Hocevar pirms 12 gadiem
vecāks
revīzija
7cd3341504
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. +6
    -0
      src/lol/base/string.h

+ 6
- 0
src/lol/base/string.h Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt