mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Use std::make_unique
This commit is contained in:
parent
e375f3ee0b
commit
29c05ed3e8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue