diff options
author | David Faure <faure@kde.org> | 2012-01-20 11:22:09 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-20 14:17:41 +0100 |
commit | 47d5d349d8f5bc590ca7cdf30bf13b69bddf3225 (patch) | |
tree | be75994c1d77e479d562d571ef9cfaf48f9583d9 /src/corelib/tools/qlist.cpp | |
parent | 841b0c4fac8e8a96ebb2120b704cf7bbf1260543 (diff) |
Remove QBool and use bool instead.
QBool was introduced with Qt-4.0, to detect Qt3-like code like
if (c.contains(d) == 2) and break compilation on such constructs.
This isn't necessary anymore, given that such code couldn't possibly
compile in Qt4 times.
And QBool was confusing developers, and creating compile errors (e.g.
QVariant doesn't have support for it), so better remove it for Qt 5.
Change-Id: I6642f43f5e12b872f98abb56600186179f072b09
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qlist.cpp')
-rw-r--r-- | src/corelib/tools/qlist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp index adc6ee7a4b..4e62b8d0b0 100644 --- a/src/corelib/tools/qlist.cpp +++ b/src/corelib/tools/qlist.cpp @@ -869,7 +869,7 @@ void **QListData::erase(void **xi) \sa indexOf() */ -/*! \fn QBool QList::contains(const T &value) const +/*! \fn bool QList::contains(const T &value) const Returns true if the list contains an occurrence of \a value; otherwise returns false. |