From ad9f5c7e938b1d80b455acdfd0809448f2b5e1db Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Tue, 9 Aug 2011 11:30:03 +0200 Subject: Remove all non-const operator== We had to leave the non-const operator== for binary compatibility. Remove them all, just leave the const version in there. 100% source compatible. Change-Id: Ib7a70fb441fe51d5164d9cbf495cbeda0f48fafe Reviewed-on: http://codereview.qt.nokia.com/2773 Reviewed-by: Qt Sanity Bot Reviewed-by: Robert Griebl --- src/gui/painting/qbrush.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/gui/painting/qbrush.cpp') diff --git a/src/gui/painting/qbrush.cpp b/src/gui/painting/qbrush.cpp index 97ea4dbc15..742a4ea071 100644 --- a/src/gui/painting/qbrush.cpp +++ b/src/gui/painting/qbrush.cpp @@ -1567,14 +1567,6 @@ bool QGradient::operator==(const QGradient &gradient) const return stops() == gradient.stops(); } -/*! - \internal -*/ -bool QGradient::operator==(const QGradient &gradient) -{ - return const_cast(this)->operator==(gradient); -} - /*! \class QLinearGradient \ingroup painting -- cgit v1.2.3