Browse Source

base: minor compilation fix.

undefined
Sam Hocevar 10 years ago
parent
commit
8b3576d5da
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lol/base/enum.h

+ 2
- 2
src/lol/base/enum.h View File

@@ -38,7 +38,7 @@ struct StructSafeEnum
{ {
protected: protected:
/* Convert to string stuff */ /* Convert to string stuff */
virtual bool BuildEnumMap(map<int64_t, String>& enum_map) { return false; }
virtual bool BuildEnumMap(map<int64_t, String>&) { return false; }
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template<typename BASE, typename T = typename BASE::Type> template<typename BASE, typename T = typename BASE::Type>
@@ -63,7 +63,7 @@ public:
static map<int64_t, String> enum_map; static map<int64_t, String> enum_map;
static bool ready = false; static bool ready = false;


if (ready || BuildEnumMap(enum_map))
if (ready || this->BuildEnumMap(enum_map))
{ {
ready = true; ready = true;
if (enum_map.has_key((int64_t)m_value)) if (enum_map.has_key((int64_t)m_value))


Loading…
Cancel
Save