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:
Jan van Dijk
2015-06-02 02:07:39 +02:00
committed by Vadim Zeitlin
parent 85a76d2d61
commit 5aae7c7387

View File

@@ -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 \
{ \