diff options
author | Harald Fernengel <harald.fernengel@nokia.com> | 2011-08-09 11:30:03 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-09 12:00:51 +0200 |
commit | ad9f5c7e938b1d80b455acdfd0809448f2b5e1db (patch) | |
tree | aebaf4392689880196a264015177cdd6e65cf8b5 /src/gui/graphicsview/qgraphicslayout_p.h | |
parent | 92d88e475518b9f34dd068803d439892bdeaba9a (diff) |
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 <qt_sanity_bot@ovi.com>
Reviewed-by: Robert Griebl <robert.griebl@nokia.com>
Diffstat (limited to 'src/gui/graphicsview/qgraphicslayout_p.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicslayout_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicslayout_p.h b/src/gui/graphicsview/qgraphicslayout_p.h index 586cbc77e3..071a2ade25 100644 --- a/src/gui/graphicsview/qgraphicslayout_p.h +++ b/src/gui/graphicsview/qgraphicslayout_p.h @@ -98,9 +98,9 @@ public: inline QStyle *style() const { return m_style; } inline QWidget *widget() const { return m_widget; } - inline bool operator==(const QLayoutStyleInfo &other) + inline bool operator==(const QLayoutStyleInfo &other) const { return m_style == other.m_style && m_widget == other.m_widget; } - inline bool operator!=(const QLayoutStyleInfo &other) + inline bool operator!=(const QLayoutStyleInfo &other) const { return !(*this == other); } inline void setDefaultSpacing(Qt::Orientation o, qreal spacing){ |