Applied [ 609518 ] wxImage: const comp. operators

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-10-02 13:35:52 +00:00
parent 44b283fef0
commit fe3f379193
2 changed files with 4 additions and 4 deletions

View File

@@ -911,7 +911,7 @@ Returns 'this' object.
\membersection{wxImage::operator $==$} \membersection{wxImage::operator $==$}
\func{bool}{operator $==$}{\param{const wxImage\& }{image}} \constfunc{bool}{operator $==$}{\param{const wxImage\& }{image}}
Equality operator. This operator tests whether the internal data pointers are Equality operator. This operator tests whether the internal data pointers are
equal (a fast test). equal (a fast test).
@@ -926,7 +926,7 @@ Returns TRUE if the images were effectively equal, FALSE otherwise.
\membersection{wxImage::operator $!=$} \membersection{wxImage::operator $!=$}
\func{bool}{operator $!=$}{\param{const wxImage\& }{image}} \constfunc{bool}{operator $!=$}{\param{const wxImage\& }{image}}
Inequality operator. This operator tests whether the internal data pointers are Inequality operator. This operator tests whether the internal data pointers are
unequal (a fast test). unequal (a fast test).

View File

@@ -248,9 +248,9 @@ public:
return *this; return *this;
} }
bool operator == (const wxImage& image) bool operator == (const wxImage& image) const
{ return m_refData == image.m_refData; } { return m_refData == image.m_refData; }
bool operator != (const wxImage& image) bool operator != (const wxImage& image) const
{ return m_refData != image.m_refData; } { return m_refData != image.m_refData; }
static wxList& GetHandlers() { return sm_handlers; } static wxList& GetHandlers() { return sm_handlers; }