diff options
Diffstat (limited to 'src/account-server/storage.cpp')
-rw-r--r-- | src/account-server/storage.cpp | 2 |
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)); |