Fix a few {QByteArray,QList}::count related deprecation warnings

Change-Id: I493e557a2ec976560c9e37312d8ae860490a2831
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2024-05-23 15:51:53 +02:00
parent 1e9c11c3b3
commit 917523d7e3
7 changed files with 12 additions and 12 deletions

View File

@@ -1626,7 +1626,7 @@ QString GitClient::synchronousCurrentLocalBranch(const FilePath &workingDirector
if (!branch.isEmpty()) {
const QString refsHeadsPrefix = "refs/heads/";
if (branch.startsWith(refsHeadsPrefix)) {
branch.remove(0, refsHeadsPrefix.count());
branch.remove(0, refsHeadsPrefix.size());
return branch;
}
}