diff options
author | hjk <hjk@theqtcompany.com> | 2016-04-06 08:54:29 +0200 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2016-04-06 07:01:07 +0000 |
commit | 2a7f39819c6ab32b232116811bb1b920c32a28c8 (patch) | |
tree | 5a0df56bebf71edba8cab4de874ab1496506e096 /src/qml/jsruntime/qv4dateobject.cpp | |
parent | 60da655dff4ffcc94d32a05bb5fa32240b0eaa0b (diff) |
Add a QChar::unicode() calls to brush over deprecation warning
... introduced with e0ea0f6178 in QtBase.
Change-Id: I5b93236a28de237b407a3eaa26078242fa8d58ff
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4dateobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4dateobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4dateobject.cpp b/src/qml/jsruntime/qv4dateobject.cpp index 7051d5c3a5..520b6bcc37 100644 --- a/src/qml/jsruntime/qv4dateobject.cpp +++ b/src/qml/jsruntime/qv4dateobject.cpp @@ -466,7 +466,7 @@ static inline double ParseString(const QString &s) if (format < Minute || format >= TimezoneHour) error = true; format = TimezoneHour; - } else if (*ch == 'Z' || *ch == 0) { + } else if (*ch == 'Z' || ch->unicode() == 0) { format = Done; } current = 0; |