Fix documentation about QStringLiteral
The fallback for QStringLiteral in case C++11 features are not enabled is QString::fromUtf8(), not QLatin1String(). Also, the result of a QStringLiteral expression _is_ a QString. Change-Id: Ib9c2f4c13fff237de3acb2e0f64027bacea6271c Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
bc9423316f
commit
7ec4939313
@ -9872,9 +9872,7 @@ QString QString::toHtmlEscaped() const
|
||||
the read-only segment of the compiled object file.
|
||||
|
||||
For compilers not supporting the creation of compile time strings, QStringLiteral will fall back to
|
||||
QLatin1String.
|
||||
|
||||
The result of the QStringLiteral expression can be cast into a QString.
|
||||
QString::fromUtf8().
|
||||
|
||||
If you have code looking like:
|
||||
\code
|
||||
|
Loading…
Reference in New Issue
Block a user