diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-05-09 15:06:29 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-07-22 13:49:19 +0200 |
commit | 903e04deadb4b8f13a77c8a741c0f937beca0640 (patch) | |
tree | 7a502afea535428de7192b64e929e260bc539d24 /src/qml/qml/qqmllocale.cpp | |
parent | 133ea9d0f1c2dc73b916f5993616a1dd88be98a1 (diff) |
Convert String to new constructor syntax
Change-Id: I07f7667d3d72a7d72e6717d194de8d7b15435777
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmllocale.cpp')
-rw-r--r-- | src/qml/qml/qqmllocale.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmllocale.cpp b/src/qml/qml/qqmllocale.cpp index 7687c17e82..0d67b3a319 100644 --- a/src/qml/qml/qqmllocale.cpp +++ b/src/qml/qml/qqmllocale.cpp @@ -383,7 +383,7 @@ QV4::ReturnedValue QQmlNumberExtension::method_toLocaleString(QV4::CallContext * if (!ctx->d()->callData->args[1].isString()) V4THROW_ERROR("Locale: Number.toLocaleString(): Invalid arguments"); QV4::String *fs = ctx->d()->callData->args[1].toString(ctx); - if (fs->length()) + if (fs->d()->length()) format = fs->toQString().at(0).unicode(); } int prec = 2; @@ -447,7 +447,7 @@ QV4::ReturnedValue QQmlNumberExtension::method_fromLocaleString(QV4::CallContext } QV4::String *ns = ctx->d()->callData->args[numberIdx].toString(ctx); - if (!ns->length()) + if (!ns->d()->length()) return QV4::Encode(Q_QNAN); bool ok = false; |