Work around clang warning about side effects inside typeid().
This warning was harmless but very annoying as it was given for each and every inclusion of this header. Closes #16968.
This commit is contained in:
committed by
Vadim Zeitlin
parent
85a76d2d61
commit
5aae7c7387
@@ -159,7 +159,8 @@ private:
|
||||
public: \
|
||||
static bool IsSameClass(const wxAnyValueType* otherType) \
|
||||
{ \
|
||||
return wxTypeId(*sm_instance.get()) == wxTypeId(*otherType); \
|
||||
const wxAnyValueType* const inst = sm_instance.get(); \
|
||||
return wxTypeId(*inst) == wxTypeId(*otherType); \
|
||||
} \
|
||||
virtual bool IsSameType(const wxAnyValueType* otherType) const \
|
||||
{ \
|
||||
|
Reference in New Issue
Block a user