From 9883dc6925a2bc33f7971b1bb7d2319fafe6f5dc Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 25 Aug 2024 18:09:09 +0200 Subject: [PATCH] TemporaryFile: Use int --- src/core/temporaryfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/temporaryfile.cpp b/src/core/temporaryfile.cpp index 68fab5dda..188c57015 100644 --- a/src/core/temporaryfile.cpp +++ b/src/core/temporaryfile.cpp @@ -61,7 +61,7 @@ QString TemporaryFile::GenerateFilename(const QString &filename_pattern) const { QString filename = filename_pattern; Q_FOREVER { - const qint64 i = filename.indexOf(QLatin1Char('X')); + const int i = static_cast(filename.indexOf(QLatin1Char('X'))); if (i == -1) break; const qint64 index = QRandomGenerator::global()->bounded(0, random_chars.length()); const QChar random_char = random_chars.at(index);