Utils: Replace two deprecated uses of .count()

Change-Id: I13d683b762c5093231e42c57d58ae322746d9922
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-06-06 14:27:20 +02:00
parent 58c5c627a5
commit 52db6f38f7
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ FilePath BuildableHelperLibrary::qtChooserToQmakePath(const FilePath &qtChooser)
int pos = output.indexOf(toolDir);
if (pos == -1)
return {};
pos += toolDir.count();
pos += toolDir.size();
int end = output.indexOf('\"', pos);
if (end == -1)
return {};

View File

@@ -134,7 +134,7 @@ private:
}
static QString formatField(int number, int fieldWidth, const QString &suffix = {})
{
return QString("%1%2").arg(number, fieldWidth - suffix.count()).arg(suffix);
return QString("%1%2").arg(number, fieldWidth - suffix.size()).arg(suffix);
}
static int toMs(quint64 nsesc) // nanoseconds to miliseconds