summaryrefslogtreecommitdiff
path: root/src/account-server/storage.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2023-05-02 17:20:14 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2023-05-05 16:03:23 +0000
commitad07c93e31ec9cf6ecc508bf8df79ab62c24823e (patch)
treee68751a2e5f38527dac6fab4d50a9992cb4737f5 /src/account-server/storage.cpp
parent409b31423533ac3e648f882e4d2380dcf4fcc3ec (diff)
downloadmanaserv-ad07c93e31ec9cf6ecc508bf8df79ab62c24823e.tar.gz
manaserv-ad07c93e31ec9cf6ecc508bf8df79ab62c24823e.tar.bz2
manaserv-ad07c93e31ec9cf6ecc508bf8df79ab62c24823e.tar.xz
manaserv-ad07c93e31ec9cf6ecc508bf8df79ab62c24823e.zip
Use std::make_unique
Diffstat (limited to 'src/account-server/storage.cpp')
-rw-r--r--src/account-server/storage.cpp2
1 files changed, 1 insertions, 1 deletions
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<Account> Storage::getAccountBySQL()
// Create an Account instance
// and initialize it with information about the user.
- std::unique_ptr<Account> account { new Account(id) };
+ auto account = std::make_unique<Account>(id);
account->setName(accountInfo(0, 1));
account->setPassword(accountInfo(0, 2));
account->setEmail(accountInfo(0, 3));