1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-12 07:48:04 +00:00

Suppress function unused warning

This commit is contained in:
Chocobo1 2021-09-21 17:18:00 +08:00
parent ecd23d0abd
commit 1c9696b68e
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 3 additions and 0 deletions

View File

@ -61,12 +61,14 @@
namespace
{
#ifdef Q_OS_WIN
QString makeProfileID(const QString &profilePath, const QString &profileName)
{
return profilePath.isEmpty()
? profileName
: profileName + QLatin1Char('@') + Utils::Fs::toValidFileSystemName(profilePath, false, {});
}
#endif
}
Preferences *Preferences::m_instance = nullptr;

View File

@ -30,6 +30,7 @@
#pragma once
#include <QtContainerFwd>
#include <QtGlobal>
#include <QVariant>
#include "base/utils/net.h"