summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qnumberformat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/util/qnumberformat.cpp')
-rw-r--r--src/declarative/util/qnumberformat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/util/qnumberformat.cpp b/src/declarative/util/qnumberformat.cpp
index c6a03e9..fd44db1 100644
--- a/src/declarative/util/qnumberformat.cpp
+++ b/src/declarative/util/qnumberformat.cpp
@@ -75,7 +75,7 @@ void QNumberFormat::handleFormat()
{
// ### is extremely messy
if (_format.isEmpty()) {
- _text = QString(QLatin1String("%1")).arg(_number, -1, 'f', -1);
+ _text = QString::number(_number, 'f', -1);
return;
}
@@ -115,7 +115,7 @@ void QNumberFormat::handleFormat()
}
// round given the decimal length/precision
- inputString = QString(QLatin1String("%1")).arg(_number, -1, 'f', decimalLength);
+ inputString = QString::number(_number, 'f', decimalLength);
QStringList parts = inputString.split(QLatin1Char('.'));
QStringList formatParts = _format.split(QLatin1Char('.'));