1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(settings): const getters

This commit is contained in:
Nils Fenner 2016-08-04 19:56:23 +02:00
parent f00b9008e6
commit e2f9d2cfe8
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C
2 changed files with 6 additions and 6 deletions

View File

@ -626,7 +626,7 @@ uint32_t Settings::makeProfileId(const QString& profile)
@brief Get path to directory, where the settings files are stored.
@return Path to settings directory, ends with a directory separator.
*/
QString Settings::getSettingsDirPath()
QString Settings::getSettingsDirPath() const
{
QMutexLocker locker{&bigLock};
if (makeToxPortable)
@ -649,7 +649,7 @@ QString Settings::getSettingsDirPath()
@brief Get path to directory, where the application data are stored.
@return Path to application data, ends with a directory separator.
*/
QString Settings::getAppDataDirPath()
QString Settings::getAppDataDirPath() const
{
QMutexLocker locker{&bigLock};
if (makeToxPortable)
@ -674,7 +674,7 @@ QString Settings::getAppDataDirPath()
@brief Get path to directory, where the application cache are stored.
@return Path to application cache, ends with a directory separator.
*/
QString Settings::getAppCacheDirPath()
QString Settings::getAppCacheDirPath() const
{
QMutexLocker locker{&bigLock};
if (makeToxPortable)

View File

@ -135,9 +135,9 @@ public:
public:
static Settings& getInstance();
static void destroyInstance();
QString getSettingsDirPath();
QString getAppDataDirPath();
QString getAppCacheDirPath();
QString getSettingsDirPath() const;
QString getAppDataDirPath() const;
QString getAppCacheDirPath() const;
void createSettingsDir();
void createPersonal(QString basename);