mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Use std::make_unique
This commit is contained in:
parent
e375f3ee0b
commit
29c05ed3e8
@ -177,7 +177,7 @@ std::unique_ptr<QSettings> Private::CustomProfile::applicationSettings(const QSt
|
|||||||
const auto CONF_FILE_EXTENSION = u".conf"_qs;
|
const auto CONF_FILE_EXTENSION = u".conf"_qs;
|
||||||
#endif
|
#endif
|
||||||
const Path settingsFilePath = configLocation() / Path(name + CONF_FILE_EXTENSION);
|
const Path settingsFilePath = configLocation() / Path(name + CONF_FILE_EXTENSION);
|
||||||
return std::unique_ptr<QSettings>(new QSettings(settingsFilePath.data(), QSettings::IniFormat));
|
return std::make_unique<QSettings>(settingsFilePath.data(), QSettings::IniFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
Path Private::NoConvertConverter::fromPortablePath(const Path &portablePath) const
|
Path Private::NoConvertConverter::fromPortablePath(const Path &portablePath) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user