From 29c05ed3e81d0e902c8cb6ec2c2a332edefeeff8 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 6 May 2023 21:36:31 +0800 Subject: [PATCH] Use std::make_unique --- src/base/profile_p.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/profile_p.cpp b/src/base/profile_p.cpp index e27a232a4..e90c96139 100644 --- a/src/base/profile_p.cpp +++ b/src/base/profile_p.cpp @@ -177,7 +177,7 @@ std::unique_ptr Private::CustomProfile::applicationSettings(const QSt const auto CONF_FILE_EXTENSION = u".conf"_qs; #endif const Path settingsFilePath = configLocation() / Path(name + CONF_FILE_EXTENSION); - return std::unique_ptr(new QSettings(settingsFilePath.data(), QSettings::IniFormat)); + return std::make_unique(settingsFilePath.data(), QSettings::IniFormat); } Path Private::NoConvertConverter::fromPortablePath(const Path &portablePath) const