File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1264,14 +1264,14 @@ namespace SharedUtil
12641264 };
12651265
12661266 #define DECLARE_ENUM2 (T, U ) \
1267- CEnumInfo<U>* GetEnumInfo ( const T& ); \
1268- inline const SString& EnumToString ( const T& value ) { return GetEnumInfo ( * (T*)0 )->FindName ( (eDummy)value ); }\
1269- inline bool StringToEnum ( const SString& strName, T& outResult ) { return GetEnumInfo ( * (T*)0 )->FindValue ( strName, (eDummy&)outResult ); }\
1270- inline const SString& GetEnumTypeName ( const T& ) { return GetEnumInfo ( * (T*)0 )->GetTypeName (); }\
1271- inline bool EnumValueValid ( const T& value ) { return GetEnumInfo ( * (T*)0 )->ValueValid ( (eDummy)value ); }\
1267+ CEnumInfo<U>* GetEnumInfo ( const T* ); \
1268+ inline const SString& EnumToString ( const T& value ) { return GetEnumInfo ( (T*)0 )->FindName ( (eDummy)value ); }\
1269+ inline bool StringToEnum ( const SString& strName, T& outResult ) { return GetEnumInfo ( (T*)0 )->FindValue ( strName, (eDummy&)outResult ); }\
1270+ inline const SString& GetEnumTypeName ( const T& ) { return GetEnumInfo ( (T*)0 )->GetTypeName (); }\
1271+ inline bool EnumValueValid ( const T& value ) { return GetEnumInfo ( (T*)0 )->ValueValid ( (eDummy)value ); }\
12721272
12731273 #define IMPLEMENT_ENUM_BEGIN2 (T, U ) \
1274- CEnumInfo<U>* GetEnumInfo ( const T& ) \
1274+ CEnumInfo<U>* GetEnumInfo ( const T* ) \
12751275 { \
12761276 using CEnumInfo = CEnumInfo<U>; \
12771277 static const CEnumInfo::SEnumItem items[] = {
You can’t perform that action at this time.
0 commit comments