diff options
author | Ivan Tkachenko <me@ratijas.tk> | 2022-01-12 18:39:04 +0300 |
---|---|---|
committer | Ivan Tkachenko <me@ratijas.tk> | 2022-01-19 21:08:48 +0300 |
commit | 321e51d92611e06374a5a237a71612750a79693a (patch) | |
tree | c99212941b385c2ba1ca221fbdad3c69ac9a2d03 /src/corelib/text/qstring.cpp | |
parent | 9f6f3da8eb5da4718f601cc768d5baba404ef1a6 (diff) |
Doc: Cross-link QString's methods
Arguably, when talking about «null-string» constructor, it might be
useful to read about which strings are considered null, and which
methods one can use to test that.
Change-Id: Ie30144f33000aac53f4041cfb99da28a79dad946
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/text/qstring.cpp')
-rw-r--r-- | src/corelib/text/qstring.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 99180aa0a0..80b9653ec9 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -2323,9 +2323,9 @@ static int qArgDigitValue(QChar ch) noexcept /*! \fn QString::QString() - Constructs a null string. Null strings are also empty. + Constructs a null string. Null strings are also considered empty. - \sa isEmpty() + \sa isEmpty(), isNull(), {Distinction Between Null and Empty Strings} */ /*! @@ -9108,7 +9108,9 @@ QString &QString::setRawData(const QChar *unicode, qsizetype size) /*! \fn QLatin1String::QLatin1String() \since 5.6 - Constructs a QLatin1String object that stores a nullptr. + Constructs a QLatin1String object that stores a \nullptr. + + \sa data(), isEmpty(), isNull(), {Distinction Between Null and Empty Strings} */ /*! \fn QLatin1String::QLatin1String(const char *str) |