summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qlocale.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2020-05-06 11:08:54 +0200
committerMarc Mutz <marc.mutz@kdab.com>2020-05-12 07:43:59 +0200
commite9005608eaf40a875b03e2c0513ee2b1e3675fd8 (patch)
tree82242fad71fee0f6dbe421ae720e835f578fd1ed /src/corelib/text/qlocale.cpp
parent1a8916cc4f55b70009a50e6fc69a49f32fc02720 (diff)
QtCore: use new QChar::fromUcs{2,4}()
Also replace one case of QChar(0) with QChar::Null. These were errors in my local tree, which means they're included in bootstrap builds (incl. qmake). Change-Id: I3dffa9383fd1a30aa43fe2491ad95bb2b1869b40 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/text/qlocale.cpp')
-rw-r--r--src/corelib/text/qlocale.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp
index 8df28797bd..c57dc042d3 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -3897,7 +3897,7 @@ bool QLocaleData::numberToCLocale(QStringView s, QLocale::NumberOptions number_o
char out = numericToCLocale(in);
if (out == 0) {
- const QChar simple(in.size() == 1 ? in.front() : QChar(0));
+ const QChar simple = in.size() == 1 ? in.front() : QChar::Null;
if (in == listSeparator())
out = ';';
else if (in == percentSign())