use bool expression rather than implicit conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -397,7 +397,7 @@ class wxEventFunctorMethod
|
||||
<
|
||||
Class,
|
||||
EventArg,
|
||||
wxConvertibleTo<Class, wxEvtHandler>::value
|
||||
wxConvertibleTo<Class, wxEvtHandler>::value != 0
|
||||
>
|
||||
{
|
||||
private:
|
||||
|
@@ -30,7 +30,7 @@ public:
|
||||
// default copy ctor and dtor are ok
|
||||
|
||||
// accessors
|
||||
virtual bool IsOk() const { return m_cgColour; }
|
||||
virtual bool IsOk() const { return m_cgColour != NULL; }
|
||||
|
||||
virtual WXDLLIMPEXP_INLINE_CORE ChannelType Red() const { return m_red; }
|
||||
virtual WXDLLIMPEXP_INLINE_CORE ChannelType Green() const { return m_green; }
|
||||
|
@@ -202,7 +202,7 @@ class wxWeakRef : public
|
||||
#ifdef USE_ONLY_STATIC_WEAKREF
|
||||
wxWeakRefStatic<T>
|
||||
#else
|
||||
wxWeakRefImpl<T, wxIsStaticTrackable<T>::value>
|
||||
wxWeakRefImpl<T, wxIsStaticTrackable<T>::value != 0>
|
||||
#endif
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user