mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
Use proper return type
`count()`, `length()`, `size()`, `indexOf()` and `lastIndexOf()` were returning `int` in Qt5. In Qt6 they return `qsizetype`. PR #23317.
This commit is contained in:
@@ -543,7 +543,7 @@ void Application::runExternalProgram(const QString &programTemplate, const BitTo
|
||||
|
||||
const auto replaceVariables = [torrent](QString str) -> QString
|
||||
{
|
||||
for (int i = (str.length() - 2); i >= 0; --i)
|
||||
for (qsizetype i = (str.length() - 2); i >= 0; --i)
|
||||
{
|
||||
if (str[i] != u'%')
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user