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/corelib/io/qfileinfo.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/corelib/io/qfileinfo.h') diff --git a/src/corelib/io/qfileinfo.h b/src/corelib/io/qfileinfo.h index 6ca0ae79e0..ab3d2dc847 100644 --- a/src/corelib/io/qfileinfo.h +++ b/src/corelib/io/qfileinfo.h @@ -75,9 +75,7 @@ public: inline QFileInfo&operator=(QFileInfo &&other) { qSwap(d_ptr, other.d_ptr); return *this; } #endif - bool operator==(const QFileInfo &fileinfo); // 5.0 - remove me bool operator==(const QFileInfo &fileinfo) const; - inline bool operator!=(const QFileInfo &fileinfo) { return !(operator==(fileinfo)); } // 5.0 - remove me inline bool operator!=(const QFileInfo &fileinfo) const { return !(operator==(fileinfo)); } void setFile(const QString &file); -- cgit v1.2.3