Trivial fix in qjsonobject.h for -Werror=shadow
authorJani Uusi-Rantala <jani.uusi-rantala@nokia.com>
Wed, 1 Feb 2012 12:34:52 +0000 (14:34 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Feb 2012 23:00:45 +0000 (00:00 +0100)
There was a few errors coming from other components
using qtbase - error: declaration of 'o' shadows a
member of 'this' [-Werror=shadow].

Change-Id: Ib394f404370f001e68fde8b424cd5fff527d8fe7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/json/qjsonobject.h

index 5963b3b..d2831a3 100644 (file)
@@ -158,8 +158,8 @@ public:
         inline const_iterator &operator+=(int j) { i += j; return *this; }
         inline const_iterator &operator-=(int j) { i -= j; return *this; }
 
-        inline bool operator==(const iterator &o) const { return i == o.i; }
-        inline bool operator!=(const iterator &o) const { return i != o.i; }
+        inline bool operator==(const iterator &other) const { return i == other.i; }
+        inline bool operator!=(const iterator &other) const { return i != other.i; }
     };
     friend class const_iterator;