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
1264
1264
};
1265
1265
1266
1266
#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 ); }\
1272
1272
1273
1273
#define IMPLEMENT_ENUM_BEGIN2 (T, U ) \
1274
- CEnumInfo<U>* GetEnumInfo ( const T& ) \
1274
+ CEnumInfo<U>* GetEnumInfo ( const T* ) \
1275
1275
{ \
1276
1276
using CEnumInfo = CEnumInfo<U>; \
1277
1277
static const CEnumInfo::SEnumItem items[] = {
You can’t perform that action at this time.
0 commit comments