Changeset 2851


Ignore:
Timestamp:
Aug 21, 2013, 11:47:12 PM (6 years ago)
Author:
sam
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/base/string.h

    r2816 r2851  
    9898    /* Return a C string */
    9999    inline char const *C() const
     100    {
     101        return &(*this)[0];
     102    }
     103
     104    /* Non-const version; make sure to not overflow the internal array */
     105    inline char *C()
    100106    {
    101107        return &(*this)[0];
Note: See TracChangeset for help on using the changeset viewer.