Browse Source

Use std::make_unique

adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
29c05ed3e8
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/profile_p.cpp

2
src/base/profile_p.cpp

@ -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…
Cancel
Save