mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: Comply with Clang's Wunused-const-variable
This commit is contained in:
parent
acc46370ca
commit
3d7a0d249d
@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
const QLatin1String globalSettingsFile{"qtox.ini"};
|
const QLatin1String globalSettingsFile{"qtox.ini"};
|
||||||
|
|
||||||
|
#if PATHS_VERSION_TCS_COMPLIANT
|
||||||
const QLatin1String profileFolder{"profiles"};
|
const QLatin1String profileFolder{"profiles"};
|
||||||
const QLatin1String themeFolder{"themes"};
|
const QLatin1String themeFolder{"themes"};
|
||||||
const QLatin1String avatarsFolder{"avatars"};
|
const QLatin1String avatarsFolder{"avatars"};
|
||||||
@ -47,6 +49,7 @@ const QLatin1String TCSToxFileFolder{"~/Library/Application Support/Tox"};
|
|||||||
#else
|
#else
|
||||||
const QLatin1String TCSToxFileFolder{"~/.config/tox/"};
|
const QLatin1String TCSToxFileFolder{"~/.config/tox/"};
|
||||||
#endif
|
#endif
|
||||||
|
#endif // PATHS_VERSION_TCS_COMPLIANT
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -42,12 +42,14 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
#if PATHS_VERSION_TCS_COMPLIANT
|
||||||
const QLatin1String globalSettingsFile{"qtox.ini"};
|
const QLatin1String globalSettingsFile{"qtox.ini"};
|
||||||
const QLatin1String profileFolder{"profiles"};
|
const QLatin1String profileFolder{"profiles"};
|
||||||
const QLatin1String themeFolder{"themes"};
|
const QLatin1String themeFolder{"themes"};
|
||||||
const QLatin1String avatarsFolder{"avatars"};
|
const QLatin1String avatarsFolder{"avatars"};
|
||||||
const QLatin1String transfersFolder{"transfers"};
|
const QLatin1String transfersFolder{"transfers"};
|
||||||
const QLatin1String screenshotsFolder{"screenshots"};
|
const QLatin1String screenshotsFolder{"screenshots"};
|
||||||
|
#endif // PATHS_VERSION_TCS_COMPLIANT
|
||||||
const QString sep{QDir::separator()};
|
const QString sep{QDir::separator()};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user