summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstring.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2014-11-25 14:33:49 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2014-11-27 10:18:43 +0100
commitfc3402ca823b74d1a642753c4cc8bef931411ab7 (patch)
treea22b8534f3af0752a898dd987ada8f92960a2cb7 /src/corelib/tools/qstring.cpp
parent8d2d4255c61fb1daf8335285306c40d704f18742 (diff)
Clarify QString::clear()
QString::clear() sets the string to the null QString, not just an empty one. Change-Id: Ie6f070f9f2e464105a7b87376e6dad90b5e4d2f2 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/corelib/tools/qstring.cpp')
-rw-r--r--src/corelib/tools/qstring.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp
index 29b546770c..9921d5cfbb 100644
--- a/src/corelib/tools/qstring.cpp
+++ b/src/corelib/tools/qstring.cpp
@@ -1692,9 +1692,9 @@ void QString::expand(int i)
/*! \fn void QString::clear()
- Clears the contents of the string and makes it empty.
+ Clears the contents of the string and makes it null.
- \sa resize(), isEmpty()
+ \sa resize(), isNull()
*/
/*! \fn QString &QString::operator=(const QString &other)