From 321e51d92611e06374a5a237a71612750a79693a Mon Sep 17 00:00:00 2001 From: Ivan Tkachenko Date: Wed, 12 Jan 2022 18:39:04 +0300 Subject: Doc: Cross-link QString's methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Fabian Kosmale --- src/corelib/text/qstring.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/corelib/text/qstring.cpp') 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) -- cgit v1.2.3