Browse Source

base: fix template ambiguity in FindValue().

undefined
Sam Hocevar 11 years ago
parent
commit
bfb3b67db1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/utils.h

+ 2
- 2
src/utils.h View File

@@ -69,9 +69,9 @@ template< class T > inline T FindValue(const char* name)
n.ToLower();
for (int i = 0; i < T::Max; ++i)
{
String s = T::GetName(T::Value(i));
String s = T::GetName(typename T::Value(i));
if (s.ToLower().IndexOf(n.C()) > -1)
return T(T::Value(i));
return T(typename T::Value(i));
}
return T::Max;
}


Loading…
Cancel
Save