Initialize "uc1" variable

remove warning for -Wmaybe-uninitialized.

Change-Id: Ib17200eb86ee443875a9059b62762b2dc2100634
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Wang Wei 2020-09-07 15:41:43 +08:00
parent 0e475eeea6
commit e18cb8b535
1 changed files with 1 additions and 1 deletions

View File

@ -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());