From fed77ef83e6454b5c1907098811850834446fd83 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 19 Nov 2012 00:45:37 +0000 Subject: [PATCH] core: compilation fix for older compilers. --- src/lol/core/string.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lol/core/string.h b/src/lol/core/string.h index 587b4e4d..598f2d6d 100644 --- a/src/lol/core/string.h +++ b/src/lol/core/string.h @@ -25,17 +25,17 @@ namespace lol class String : protected Array { private: - typedef Array super; + typedef Array Super; public: inline String() - : Array() + : Super() { Push('\0'); } inline String(char const *str) - : Array() + : Super() { do { @@ -46,12 +46,12 @@ public: inline char &operator [](int n) { - return ((super &)*this)[n]; + return ((Super &)*this)[n]; } inline char const &operator [](int n) const { - return ((super const &)*this)[n]; + return ((Super const &)*this)[n]; } inline String operator +(String const &s) @@ -64,7 +64,7 @@ public: { /* Be careful, we have a trailing zero we don't want! */ --m_count; - (super &)*this += (super const &)s; + (Super &)*this += (Super const &)s; return *this; } };