1
0
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:
Anthony Bilinski 2022-03-15 06:51:19 -07:00
parent acc46370ca
commit 3d7a0d249d
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
2 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,8 @@
namespace {
const QLatin1String globalSettingsFile{"qtox.ini"};
#if PATHS_VERSION_TCS_COMPLIANT
const QLatin1String profileFolder{"profiles"};
const QLatin1String themeFolder{"themes"};
const QLatin1String avatarsFolder{"avatars"};
@ -47,6 +49,7 @@ const QLatin1String TCSToxFileFolder{"~/Library/Application Support/Tox"};
#else
const QLatin1String TCSToxFileFolder{"~/.config/tox/"};
#endif
#endif // PATHS_VERSION_TCS_COMPLIANT
} // namespace
/**

View File

@ -42,12 +42,14 @@ private:
};
namespace {
#if PATHS_VERSION_TCS_COMPLIANT
const QLatin1String globalSettingsFile{"qtox.ini"};
const QLatin1String profileFolder{"profiles"};
const QLatin1String themeFolder{"themes"};
const QLatin1String avatarsFolder{"avatars"};
const QLatin1String transfersFolder{"transfers"};
const QLatin1String screenshotsFolder{"screenshots"};
#endif // PATHS_VERSION_TCS_COMPLIANT
const QString sep{QDir::separator()};
}