diff --git a/src/persistence/paths.cpp b/src/persistence/paths.cpp index 54b804e75..0873d3b20 100644 --- a/src/persistence/paths.cpp +++ b/src/persistence/paths.cpp @@ -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 /** diff --git a/test/persistence/paths_test.cpp b/test/persistence/paths_test.cpp index 0fcf6c399..6bcc2de35 100644 --- a/test/persistence/paths_test.cpp +++ b/test/persistence/paths_test.cpp @@ -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()}; }