summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
authorWang Wei <wangwei@uniontech.com>2020-09-07 15:41:43 +0800
committerWang Wei <wangwei@uniontech.com>2020-09-08 14:02:16 +0800
commite18cb8b535e742ef764353510867410316fffa6b (patch)
tree48831aa3e4db1233193085be594238808a47a038 /src/corelib/text
parent0e475eeea65305efd94e38bff8fc806b7cfddd72 (diff)
Initialize "uc1" variable
remove warning for -Wmaybe-uninitialized. Change-Id: Ib17200eb86ee443875a9059b62762b2dc2100634 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/text')
-rw-r--r--src/corelib/text/qstringconverter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qstringconverter.cpp b/src/corelib/text/qstringconverter.cpp
index f961431dfd..84f293ae5f 100644
--- a/src/corelib/text/qstringconverter.cpp
+++ b/src/corelib/text/qstringconverter.cpp
@@ -852,7 +852,7 @@ int QUtf8::compareUtf8(const char *utf8, qsizetype u8len, const QChar *utf16, qs
int QUtf8::compareUtf8(const char *utf8, qsizetype u8len, QLatin1String s)
{
- uint uc1;
+ uint uc1 = QChar::Null;
auto src1 = reinterpret_cast<const uchar *>(utf8);
auto end1 = src1 + u8len;
auto src2 = reinterpret_cast<const uchar *>(s.latin1());