Browse Source

Suppress function unused warning

adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
1c9696b68e
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/preferences.cpp
  2. 1
      src/base/preferences.h

2
src/base/preferences.cpp

@ -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;

1
src/base/preferences.h

@ -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…
Cancel
Save