summaryrefslogtreecommitdiffstats
path: root/src/tools/moc/generator.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-07-09 13:30:03 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2020-08-27 18:58:20 +0200
commit50661a9558ca3fe93bf569cc572b0fb2def5589d (patch)
tree6cf8e3d1bbfd4867db5fc79959b0c3df1a20a97a /src/tools/moc/generator.cpp
parentf48dba06650801c5678ae89adfc14b1cc3209da9 (diff)
Change QByteArray to handle large arrays
Use qsizetype throughout. Change-Id: I787af7fcfa17e1be87decb64c41c609cc24be117 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/moc/generator.cpp')
-rw-r--r--src/tools/moc/generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp
index cc43ca4490..c36e01a79a 100644
--- a/src/tools/moc/generator.cpp
+++ b/src/tools/moc/generator.cpp
@@ -279,7 +279,7 @@ void Generator::generateCode()
int idx = 0;
for (int i = 0; i < strings.size(); ++i) {
const QByteArray &str = strings.at(i);
- fprintf(out, "QT_MOC_LITERAL(%d, %d)", idx, str.length());
+ fprintf(out, "QT_MOC_LITERAL(%d, %d)", idx, int(str.length()));
if (i != strings.size() - 1)
fputc(',', out);
const QByteArray comment = str.length() > 32 ? str.left(29) + "..." : str;