From a895359c1997b5830e429bc13c661549d89f099a Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 20 Sep 2012 22:36:05 +0200 Subject: [PATCH] Review of documentation. Documentation has been updated to reflect changes in Qt5. Change-Id: I3d54d1875962bd27c43bb360ae7b3fda0b7702ba Reviewed-by: Andreas Holzammer Reviewed-by: Thiago Macieira --- src/corelib/tools/qbitarray.cpp | 8 +++++++- src/corelib/tools/qbitarray.h | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/corelib/tools/qbitarray.cpp b/src/corelib/tools/qbitarray.cpp index d5538e0..116e60d 100644 --- a/src/corelib/tools/qbitarray.cpp +++ b/src/corelib/tools/qbitarray.cpp @@ -390,7 +390,7 @@ void QBitArray::fill(bool value, int begin, int end) \overload */ -/*! \fn bool QBitArray::operator[](uint i) +/*! \fn QBitRef QBitArray::operator[](uint i) \overload */ @@ -418,6 +418,12 @@ void QBitArray::fill(bool value, int begin, int end) this bit array. */ +/*! \fn QBitArray &QBitArray::operator=(QBitArray &&other) + + Moves \a other to this bit array and returns a reference to + this bit array. +*/ + /*! \fn void QBitArray::swap(QBitArray &other) \since 4.8 diff --git a/src/corelib/tools/qbitarray.h b/src/corelib/tools/qbitarray.h index aa9c962..133f829 100644 --- a/src/corelib/tools/qbitarray.h +++ b/src/corelib/tools/qbitarray.h @@ -99,8 +99,8 @@ public: QBitArray& operator^=(const QBitArray &); QBitArray operator~() const; - inline bool operator==(const QBitArray& a) const { return d == a.d; } - inline bool operator!=(const QBitArray& a) const { return d != a.d; } + inline bool operator==(const QBitArray& other) const { return d == other.d; } + inline bool operator!=(const QBitArray& other) const { return d != other.d; } inline bool fill(bool val, int size = -1); void fill(bool val, int first, int last); -- 2.7.4