Fix compilation error in unicode table generator

Don't include a QString::number() in a sum of QByteArray and C strings.

Change-Id: I7544e835fcf5625b1fe1ee2055a48600200daafd
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Edward Welbourne 2020-07-31 15:37:40 +02:00
parent 652062dde3
commit b69092b13e

View File

@ -1,6 +1,6 @@
/**************************************************************************** /****************************************************************************
** **
** Copyright (C) 2019 The Qt Company Ltd. ** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/ ** Contact: https://www.qt.io/licensing/
** **
** This file is part of the utils of the Qt Toolkit. ** This file is part of the utils of the Qt Toolkit.
@ -1638,7 +1638,7 @@ static QByteArray createNormalizationCorrections()
qFatal("unknown unicode version in NormalizationCorrection.txt"); qFatal("unknown unicode version in NormalizationCorrection.txt");
out += " { 0x" + QByteArray::number(c.codepoint, 16) + ", 0x" + QByteArray::number(c.mapped, 16) out += " { 0x" + QByteArray::number(c.codepoint, 16) + ", 0x" + QByteArray::number(c.mapped, 16)
+ ", " + QString::number(c.version) + " },\n"; + ", " + QByteArray::number(c.version) + " },\n";
++numCorrections; ++numCorrections;
maxVersion = qMax(c.version, maxVersion); maxVersion = qMax(c.version, maxVersion);
} }