From ad07c93e31ec9cf6ecc508bf8df79ab62c24823e Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 2 May 2023 17:20:14 +0200 Subject: Use std::make_unique --- src/account-server/storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/account-server/storage.cpp') diff --git a/src/account-server/storage.cpp b/src/account-server/storage.cpp index 919238b0..34a49cfc 100644 --- a/src/account-server/storage.cpp +++ b/src/account-server/storage.cpp @@ -178,7 +178,7 @@ std::unique_ptr Storage::getAccountBySQL() // Create an Account instance // and initialize it with information about the user. - std::unique_ptr account { new Account(id) }; + auto account = std::make_unique(id); account->setName(accountInfo(0, 1)); account->setPassword(accountInfo(0, 2)); account->setEmail(accountInfo(0, 3)); -- cgit v1.2.3-70-g09d2