diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp index 805daeea4e..83d49a7480 100644 --- a/libgnucash/engine/Account.cpp +++ b/libgnucash/engine/Account.cpp @@ -5284,11 +5284,8 @@ build_token_info(char const * suffix, KvpValue * value, TokenAccountsInfo & toke if (strlen(suffix) == GUID_ENCODING_LENGTH) { tokenInfo.total_count += value->get(); - AccountTokenCount this_account; /*By convention, the key ends with the account GUID.*/ - this_account.account_guid = std::string{suffix}; - this_account.token_count = value->get(); - tokenInfo.accounts.push_back(this_account); + tokenInfo.accounts.emplace_back(AccountTokenCount{std::string{suffix}, value->get()}); } }