mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-12 15:57:57 +00:00
Suppress function unused warning
This commit is contained in:
parent
ecd23d0abd
commit
1c9696b68e
@ -61,12 +61,14 @@
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
QString makeProfileID(const QString &profilePath, const QString &profileName)
|
QString makeProfileID(const QString &profilePath, const QString &profileName)
|
||||||
{
|
{
|
||||||
return profilePath.isEmpty()
|
return profilePath.isEmpty()
|
||||||
? profileName
|
? profileName
|
||||||
: profileName + QLatin1Char('@') + Utils::Fs::toValidFileSystemName(profilePath, false, {});
|
: profileName + QLatin1Char('@') + Utils::Fs::toValidFileSystemName(profilePath, false, {});
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Preferences *Preferences::m_instance = nullptr;
|
Preferences *Preferences::m_instance = nullptr;
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <QtContainerFwd>
|
#include <QtContainerFwd>
|
||||||
|
#include <QtGlobal>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
|
|
||||||
#include "base/utils/net.h"
|
#include "base/utils/net.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user