Ignore:
Timestamp:
Nov 19, 2012, 1:45:37 AM (8 years ago)
Author:
sam
Message:

core: compilation fix for older compilers.

File:
1 edited

Legend:

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

    r2086 r2089  
    2626{
    2727private:
    28     typedef Array<char> super;
     28    typedef Array<char> Super;
    2929
    3030public:
    3131    inline String()
    32       : Array()
     32      : Super()
    3333    {
    3434        Push('\0');
     
    3636
    3737    inline String(char const *str)
    38       : Array()
     38      : Super()
    3939    {
    4040        do
     
    4747    inline char &operator [](int n)
    4848    {
    49         return ((super &)*this)[n];
     49        return ((Super &)*this)[n];
    5050    }
    5151
    5252    inline char const &operator [](int n) const
    5353    {
    54         return ((super const &)*this)[n];
     54        return ((Super const &)*this)[n];
    5555    }
    5656
     
    6565        /* Be careful, we have a trailing zero we don't want! */
    6666        --m_count;
    67         (super &)*this += (super const &)s;
     67        (Super &)*this += (Super const &)s;
    6868        return *this;
    6969    }
Note: See TracChangeset for help on using the changeset viewer.