summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlocale.cpp
diff options
context:
space:
mode:
authorKavindra Palaraja <kavindra.d+qt@gmail.com>2017-01-08 12:37:03 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2017-01-10 06:38:03 +0000
commit41d1785e130e5ab43b24635c890ee501971de18b (patch)
tree1e98680cd02985225ef62c59377a4e55573eba13 /src/corelib/tools/qlocale.cpp
parentdfa08d65a55dbc54d2573fd179e1197f4fdd5a90 (diff)
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>
Diffstat (limited to 'src/corelib/tools/qlocale.cpp')
-rw-r--r--src/corelib/tools/qlocale.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp
index f499681ca9..20a984fafe 100644
--- a/src/corelib/tools/qlocale.cpp
+++ b/src/corelib/tools/qlocale.cpp
@@ -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