From fe3f37919336ec493ca52f5c8797b89c3a2e812c Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 2 Oct 2002 13:35:52 +0000 Subject: [PATCH] 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 --- docs/latex/wx/image.tex | 4 ++-- include/wx/image.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index 4986bf1c19..5f2dd48af5 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -911,7 +911,7 @@ Returns 'this' object. \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 equal (a fast test). @@ -926,7 +926,7 @@ Returns TRUE if the images were effectively equal, FALSE otherwise. \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 unequal (a fast test). diff --git a/include/wx/image.h b/include/wx/image.h index 6d025c286b..e3b3de4258 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -248,9 +248,9 @@ public: return *this; } - bool operator == (const wxImage& image) + bool operator == (const wxImage& image) const { return m_refData == image.m_refData; } - bool operator != (const wxImage& image) + bool operator != (const wxImage& image) const { return m_refData != image.m_refData; } static wxList& GetHandlers() { return sm_handlers; }