summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearray.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-02-07 14:52:41 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-16 05:11:18 +0100
commit1e43b64a7a5c3823a6bdcb8d0cd28a17955939a2 (patch)
treed04a48ee55209ee5dccfc59863aa4f5df959e51f /src/corelib/tools/qbytearray.cpp
parentc0791ac76ec7cfdc3945efa67a6f72ee3623413c (diff)
Centralize the merging toFloat conversions
The QByteArray version was missing the overflow check that the other versions had. Change-Id: I03cd92e5e5a84c038bee1f1ee217e93e9d9a675a Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/corelib/tools/qbytearray.cpp')
-rw-r--r--src/corelib/tools/qbytearray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qbytearray.cpp b/src/corelib/tools/qbytearray.cpp
index 5755bc6ffe..304ce69449 100644
--- a/src/corelib/tools/qbytearray.cpp
+++ b/src/corelib/tools/qbytearray.cpp
@@ -3545,7 +3545,7 @@ double QByteArray::toDouble(bool *ok) const
float QByteArray::toFloat(bool *ok) const
{
- return float(toDouble(ok));
+ return QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
}
/*!