mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 05:27:15 +03:00
Use char array directly
This eliminates the possibility of reassigning the pointer to another address.
This commit is contained in:
parent
a5c531f0a4
commit
180deb867a
1 changed files with 2 additions and 2 deletions
|
@ -169,9 +169,9 @@ SettingsPtr Private::CustomProfile::applicationSettings(const QString &name) con
|
|||
{
|
||||
// here we force QSettings::IniFormat format always because we need it to be portable across platforms
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MACOS)
|
||||
constexpr const char *CONF_FILE_EXTENSION = ".ini";
|
||||
const char CONF_FILE_EXTENSION[] = ".ini";
|
||||
#else
|
||||
constexpr const char *CONF_FILE_EXTENSION = ".conf";
|
||||
const char CONF_FILE_EXTENSION[] = ".conf";
|
||||
#endif
|
||||
const QString settingsFileName {QDir(configLocation()).absoluteFilePath(name + QLatin1String(CONF_FILE_EXTENSION))};
|
||||
return SettingsPtr(new QSettings(settingsFileName, QSettings::IniFormat));
|
||||
|
|
Loading…
Reference in a new issue