fix infinite recursion typo in operator!=() (patch 1665591)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-03-08 01:18:07 +00:00
parent 8d7bfa660d
commit 8f98c051f9

View File

@ -29,7 +29,7 @@ public:
// comparison (must have both versions) // comparison (must have both versions)
bool operator==(const wxDataFormat& format) const ; bool operator==(const wxDataFormat& format) const ;
bool operator!=(const wxDataFormat& format) const bool operator!=(const wxDataFormat& format) const
{ return ! ( *this != format ); } { return ! ( *this == format ); }
bool operator==(wxDataFormatId format) const bool operator==(wxDataFormatId format) const
{ return m_type == (wxDataFormatId)format; } { return m_type == (wxDataFormatId)format; }
bool operator!=(wxDataFormatId format) const bool operator!=(wxDataFormatId format) const
@ -54,7 +54,7 @@ public:
// returns true if the format is one of those defined in wxDataFormatId // returns true if the format is one of those defined in wxDataFormatId
bool IsStandard() const { return m_type > 0 && m_type < wxDF_PRIVATE; } bool IsStandard() const { return m_type > 0 && m_type < wxDF_PRIVATE; }
private: private:
wxDataFormatId m_type; wxDataFormatId m_type;
NativeFormat m_format; NativeFormat m_format;