forked from qt-creator/qt-creator
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:
@@ -31,7 +31,7 @@ FilePath BuildableHelperLibrary::qtChooserToQmakePath(const FilePath &qtChooser)
|
|||||||
int pos = output.indexOf(toolDir);
|
int pos = output.indexOf(toolDir);
|
||||||
if (pos == -1)
|
if (pos == -1)
|
||||||
return {};
|
return {};
|
||||||
pos += toolDir.count();
|
pos += toolDir.size();
|
||||||
int end = output.indexOf('\"', pos);
|
int end = output.indexOf('\"', pos);
|
||||||
if (end == -1)
|
if (end == -1)
|
||||||
return {};
|
return {};
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ private:
|
|||||||
}
|
}
|
||||||
static QString formatField(int number, int fieldWidth, const QString &suffix = {})
|
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
|
static int toMs(quint64 nsesc) // nanoseconds to miliseconds
|
||||||
|
|||||||
Reference in New Issue
Block a user