summaryrefslogtreecommitdiffstats
path: root/src/corelib/json/qjsonarray.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2012-08-23 11:35:11 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-23 21:26:20 +0200
commit7dfe25e2cd276b52d2683f7ecdad39943fdfbdce (patch)
tree81761a843223478361a6bc24162732e30cf3a813 /src/corelib/json/qjsonarray.cpp
parent3705b93c438192465ca9b19c73f5fbf3ae7f8ddc (diff)
doc: Fix some qdoc warnings
QDoc doesn't supported nested tags, and there doesn't seem to be any way to trick it into thinking you've mentioned the argument (\omit didn't work), so actually rephrasing is the only way to kill the warning. Also add a const modifier to a signature to make it match the declaration. Change-Id: Ie02a488c42565205e827602959111c53e2d05a83 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/corelib/json/qjsonarray.cpp')
-rw-r--r--src/corelib/json/qjsonarray.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/corelib/json/qjsonarray.cpp b/src/corelib/json/qjsonarray.cpp
index a2f9db7a63..d5ca066012 100644
--- a/src/corelib/json/qjsonarray.cpp
+++ b/src/corelib/json/qjsonarray.cpp
@@ -307,7 +307,7 @@ QJsonValue QJsonArray::last() const
/*!
Inserts \a value at the beginning of the array.
- This is the same as \c{insert(0, \a value)}.
+ This is the same as \c{insert(0, value)} and will prepend \a value to the array.
\sa append(), insert()
*/
@@ -328,7 +328,7 @@ void QJsonArray::append(const QJsonValue &value)
/*!
Removes the value at index position \a i. \a i must be a valid
- index position in the array (i.e., \c{0 <= \a i < size()}).
+ index position in the array (i.e., \c{0 <= i < size()}).
\sa insert(), replace()
*/
@@ -366,7 +366,7 @@ void QJsonArray::removeAt(int i)
/*!
Removes the item at index position \a i and returns it. \a i must
- be a valid index position in the array (i.e., \c{0 <= \a i < size()}).
+ be a valid index position in the array (i.e., \c{0 <= i < size()}).
If you don't use the return value, removeAt() is more efficient.
@@ -436,7 +436,7 @@ void QJsonArray::insert(int i, const QJsonValue &value)
/*!
Replaces the item at index position \a i with \a value. \a i must
- be a valid index position in the array (i.e., \c{0 <= \a i < size()}).
+ be a valid index position in the array (i.e., \c{0 <= i < size()}).
\sa operator[](), removeAt()
*/
@@ -482,7 +482,7 @@ bool QJsonArray::contains(const QJsonValue &value) const
/*!
Returns the value at index position \a i as a modifiable reference.
- \a i must be a valid index position in the array (i.e., \c{0 <= \a i <
+ \a i must be a valid index position in the array (i.e., \c{0 <= i <
size()}).
The return value is of type QJsonValueRef, a helper class for QJsonArray
@@ -584,13 +584,13 @@ bool QJsonArray::operator!=(const QJsonArray &other) const
/*! \fn void QJsonArray::push_back(const QJsonValue &value)
This function is provided for STL compatibility. It is equivalent
- to \l{QJsonArray::append()}{append(\a value)}.
+ to \l{QJsonArray::append()}{append(value)} and will append \a value to the array.
*/
/*! \fn void QJsonArray::push_front(const QJsonValue &value)
This function is provided for STL compatibility. It is equivalent
- to \l{QJsonArray::prepend()}{prepend(\a value)}.
+ to \l{QJsonArray::prepend()}{prepend(value)} and will prepend \a value to the array.
*/
/*! \fn void QJsonArray::pop_front()
@@ -694,7 +694,8 @@ bool QJsonArray::operator!=(const QJsonArray &other) const
/*! \fn QJsonValueRef QJsonArray::iterator::operator[](int j) const
- Returns a modifiable reference to the item at position \c{*this + j}.
+ Returns a modifiable reference to the item at offset \a j from the
+ item pointed to by this iterator (the item at position \c{*this + j}).
This function is provided to make QJsonArray iterators behave like C++
pointers.
@@ -918,7 +919,8 @@ bool QJsonArray::operator!=(const QJsonArray &other) const
/*! \fn QJsonValue QJsonArray::const_iterator::operator[](int j) const
- Returns the item at position \c{*this + j}.
+ Returns the item at offset \a j from the item pointed to by this iterator (the item at
+ position \c{*this + j}).
This function is provided to make QJsonArray iterators behave like C++
pointers.