chore: fix some codeql warnings (#3838)

This commit is contained in:
Tayou 2025-06-06 15:20:07 +02:00 committed by GitHub
commit f17e443b12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 14 additions and 11 deletions

View file

@ -391,7 +391,7 @@ QString PackInstallTask::getVersionForLoader(QString uid)
return m_version.loader.version;
}
QString PackInstallTask::detectLibrary(VersionLibrary library)
QString PackInstallTask::detectLibrary(const VersionLibrary& library)
{
// Try to detect what the library is
if (!library.server.isEmpty() && library.server.split("/").length() >= 3) {