summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlinkedlist.cpp
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@digia.com>2013-10-02 16:51:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-08 00:46:27 +0200
commit4533cc994484a2308297e64e99af005fb4dca065 (patch)
treebc66283d11cdad100a1aec03f4e1d86bedc9a79e /src/corelib/tools/qlinkedlist.cpp
parent50dd0232b61d8ea3fb9aab18972c6e19678656e6 (diff)
Doc: Adding mark-up to boolean default values.
Default values should have mark-up to denote that they are code. This commit changes: -"property is true" to "property is \c true". -"Returns true" to "Returns \c true". -"property is false" to "property is \c false". -"returns true" to "returns \c true". -"returns false" to "returns \c false". src/3rdparty and non-documentation instances were ignored. Task-number: QTBUG-33360 Change-Id: Ie87eaa57af947caa1230602b61c5c46292a4cf4e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/corelib/tools/qlinkedlist.cpp')
-rw-r--r--src/corelib/tools/qlinkedlist.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/corelib/tools/qlinkedlist.cpp b/src/corelib/tools/qlinkedlist.cpp
index c6e79c02a3..28319f3fda 100644
--- a/src/corelib/tools/qlinkedlist.cpp
+++ b/src/corelib/tools/qlinkedlist.cpp
@@ -176,7 +176,7 @@ const QLinkedListData QLinkedListData::shared_null = {
/*! \fn bool QLinkedList::operator==(const QLinkedList<T> &other) const
- Returns true if \a other is equal to this list; otherwise returns
+ Returns \c true if \a other is equal to this list; otherwise returns
false.
Two lists are considered equal if they contain the same values in
@@ -190,8 +190,8 @@ const QLinkedListData QLinkedListData::shared_null = {
/*! \fn bool QLinkedList::operator!=(const QLinkedList<T> &other) const
- Returns true if \a other is not equal to this list; otherwise
- returns false.
+ Returns \c true if \a other is not equal to this list; otherwise
+ returns \c false.
Two lists are considered equal if they contain the same values in
the same order.
@@ -231,7 +231,7 @@ const QLinkedListData QLinkedListData::shared_null = {
/*! \fn bool QLinkedList::isEmpty() const
- Returns true if the list contains no items; otherwise returns
+ Returns \c true if the list contains no items; otherwise returns
false.
\sa size()
@@ -285,8 +285,8 @@ const QLinkedListData QLinkedListData::shared_null = {
\fn bool QLinkedList::removeOne(const T &value)
\since 4.4
- Removes the first occurrences of \a value in the list. Returns true on
- success; otherwise returns false.
+ Removes the first occurrences of \a value in the list. Returns \c true on
+ success; otherwise returns \c false.
Example:
\snippet code/src_corelib_tools_qlinkedlist.cpp 6
@@ -299,8 +299,8 @@ const QLinkedListData QLinkedListData::shared_null = {
/*! \fn bool QLinkedList::contains(const T &value) const
- Returns true if the list contains an occurrence of \a value;
- otherwise returns false.
+ Returns \c true if the list contains an occurrence of \a value;
+ otherwise returns \c false.
This function requires the value type to have an implementation of
\c operator==().
@@ -321,8 +321,8 @@ const QLinkedListData QLinkedListData::shared_null = {
/*! \fn bool QLinkedList::startsWith(const T &value) const
\since 4.5
- Returns true if the list is not empty and its first
- item is equal to \a value; otherwise returns false.
+ Returns \c true if the list is not empty and its first
+ item is equal to \a value; otherwise returns \c false.
\sa isEmpty(), first()
*/
@@ -330,8 +330,8 @@ const QLinkedListData QLinkedListData::shared_null = {
/*! \fn bool QLinkedList::endsWith(const T &value) const
\since 4.5
- Returns true if the list is not empty and its last
- item is equal to \a value; otherwise returns false.
+ Returns \c true if the list is not empty and its last
+ item is equal to \a value; otherwise returns \c false.
\sa isEmpty(), last()
*/
@@ -589,7 +589,7 @@ const QLinkedListData QLinkedListData::shared_null = {
/*! \fn bool QLinkedList::empty() const
This function is provided for STL compatibility. It is equivalent
- to isEmpty() and returns true if the list is empty.
+ to isEmpty() and returns \c true if the list is empty.
*/
/*! \fn QLinkedList<T> &QLinkedList::operator+=(const QLinkedList<T> &other)
@@ -780,8 +780,8 @@ const QLinkedListData QLinkedListData::shared_null = {
\fn bool QLinkedList::iterator::operator==(const iterator &other) const
\fn bool QLinkedList::iterator::operator==(const const_iterator &other) const
- Returns true if \a other points to the same item as this
- iterator; otherwise returns false.
+ Returns \c true if \a other points to the same item as this
+ iterator; otherwise returns \c false.
\sa operator!=()
*/
@@ -790,8 +790,8 @@ const QLinkedListData QLinkedListData::shared_null = {
\fn bool QLinkedList::iterator::operator!=(const iterator &other) const
\fn bool QLinkedList::iterator::operator!=(const const_iterator &other) const
- Returns true if \a other points to a different item than this
- iterator; otherwise returns false.
+ Returns \c true if \a other points to a different item than this
+ iterator; otherwise returns \c false.
\sa operator==()
*/
@@ -986,16 +986,16 @@ const QLinkedListData QLinkedListData::shared_null = {
/*! \fn bool QLinkedList::const_iterator::operator==(const const_iterator &other) const
- Returns true if \a other points to the same item as this
- iterator; otherwise returns false.
+ Returns \c true if \a other points to the same item as this
+ iterator; otherwise returns \c false.
\sa operator!=()
*/
/*! \fn bool QLinkedList::const_iterator::operator!=(const const_iterator &other) const
- Returns true if \a other points to a different item than this
- iterator; otherwise returns false.
+ Returns \c true if \a other points to a different item than this
+ iterator; otherwise returns \c false.
\sa operator==()
*/