summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/tools/qbitarray.cpp8
-rw-r--r--src/corelib/tools/qbitarray.h4
2 files changed, 9 insertions, 3 deletions
diff --git a/src/corelib/tools/qbitarray.cpp b/src/corelib/tools/qbitarray.cpp
index d5538e02cc..116e60d78e 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 aa9c9620fc..133f829142 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);