TemporaryFile: Use int

This commit is contained in:
Jonas Kvinge 2024-08-25 18:09:09 +02:00
parent e3ad00e930
commit 9883dc6925
1 changed files with 1 additions and 1 deletions

View File

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