Skip to content

Commit

Permalink
Doc: Cross-link QString's methods
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
  • Loading branch information
ratijas committed Jan 19, 2022
1 parent 9f6f3da commit 321e51d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/corelib/text/qstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/

/*!
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 321e51d

Please sign in to comment.