diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2013-11-01 12:38:32 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-04 02:16:04 +0100 |
commit | a79e400150e9d550cc4ddc0c0497778d8b78fe5d (patch) | |
tree | 5a66670d4c31aaf0d356042b6fe607728e237b5b /src/qml/jsruntime/qv4dateobject.cpp | |
parent | b5991ce2a61219bda5a7fa6e33f323158d1eb78b (diff) |
Fix various compiler warnings in order to remove warn_off in the near future
Change-Id: Ic0492fbe31a1e134674bc6c20381f735dd6d5b7a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4dateobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4dateobject.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/qml/jsruntime/qv4dateobject.cpp b/src/qml/jsruntime/qv4dateobject.cpp index 688730af9b..462210adae 100644 --- a/src/qml/jsruntime/qv4dateobject.cpp +++ b/src/qml/jsruntime/qv4dateobject.cpp @@ -1282,25 +1282,25 @@ ReturnedValue DatePrototype::method_toISOString(SimpleCallContext *ctx) if (year < 0 || year > 9999) { if (qAbs(year) >= 1000000) return ctx->engine->newString(QStringLiteral("Invalid Date"))->asReturnedValue(); - result += year < 0 ? '-' : '+'; + result += year < 0 ? QLatin1Char('-') : QLatin1Char('+'); year = qAbs(year); addZeroPrefixedInt(result, year, 6); } else { addZeroPrefixedInt(result, year, 4); } - result += '-'; + result += QLatin1Char('-'); addZeroPrefixedInt(result, (int)MonthFromTime(t) + 1, 2); - result += '-'; + result += QLatin1Char('-'); addZeroPrefixedInt(result, (int)DateFromTime(t), 2); - result += 'T'; + result += QLatin1Char('T'); addZeroPrefixedInt(result, HourFromTime(t), 2); - result += ':'; + result += QLatin1Char(':'); addZeroPrefixedInt(result, MinFromTime(t), 2); - result += ':'; + result += QLatin1Char(':'); addZeroPrefixedInt(result, SecFromTime(t), 2); - result += '.'; + result += QLatin1Char('.'); addZeroPrefixedInt(result, msFromTime(t), 3); - result += 'Z'; + result += QLatin1Char('Z'); return ctx->engine->newString(result)->asReturnedValue(); } |