Clarify that QString::toDouble does not have a fallback
QString::toDouble always uses the 'C' locale. Task-number: QTBUG-44045 Change-Id: Ifb0c2f11c83c209907dd35bb39d1450022c8e85c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
dfa08d65a5
commit
41d1785e13
@ -1305,8 +1305,8 @@ float QLocale::toFloat(const QString &s, bool *ok) const
|
||||
If \a ok is not 0, reports failure by setting
|
||||
*ok to false and success by setting *ok to true.
|
||||
|
||||
Unlike QString::toDouble(), this function does not fall back to
|
||||
the "C" locale if the string cannot be interpreted in this
|
||||
Unlike QString::toDouble(), this function does not use
|
||||
the 'C' locale if the string cannot be interpreted in this
|
||||
locale.
|
||||
|
||||
\snippet code/src_corelib_tools_qlocale.cpp 3
|
||||
|
Loading…
x
Reference in New Issue
Block a user