Changeset 2089 for trunk/src/lol/core/string.h
- Timestamp:
- Nov 19, 2012, 1:45:37 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lol/core/string.h
r2086 r2089 26 26 { 27 27 private: 28 typedef Array<char> super;28 typedef Array<char> Super; 29 29 30 30 public: 31 31 inline String() 32 : Array()32 : Super() 33 33 { 34 34 Push('\0'); … … 36 36 37 37 inline String(char const *str) 38 : Array()38 : Super() 39 39 { 40 40 do … … 47 47 inline char &operator [](int n) 48 48 { 49 return (( super &)*this)[n];49 return ((Super &)*this)[n]; 50 50 } 51 51 52 52 inline char const &operator [](int n) const 53 53 { 54 return (( super const &)*this)[n];54 return ((Super const &)*this)[n]; 55 55 } 56 56 … … 65 65 /* Be careful, we have a trailing zero we don't want! */ 66 66 --m_count; 67 ( super &)*this += (super const &)s;67 (Super &)*this += (Super const &)s; 68 68 return *this; 69 69 }
Note: See TracChangeset
for help on using the changeset viewer.