Changeset 2235 for trunk/src/lol/base/string.h
- Timestamp:
- Jan 21, 2013, 12:28:12 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lol/base/string.h
r2216 r2235 65 65 } 66 66 67 void Resize(int count) 68 { 69 ((Super &)*this).Resize(count + 1); 70 ((Super &)*this).Last() = '\0'; 71 } 72 67 73 inline String operator +(String const &s) const 68 74 { … … 73 79 inline String& operator +=(String const &s) 74 80 { 75 /* Be careful, we have a trailing zero we don't want!*/81 /* Ignore the trailing zero we don't want */ 76 82 --m_count; 77 83 (Super &)*this += (Super const &)s;
Note: See TracChangeset
for help on using the changeset viewer.