mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-27 11:20:27 -06:00
Avoid copying local instance of AccountTokenCount
This commit is contained in:
parent
d07d4b962f
commit
41863be9c7
@ -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<int64_t>();
|
||||
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<int64_t>();
|
||||
tokenInfo.accounts.push_back(this_account);
|
||||
tokenInfo.accounts.emplace_back(AccountTokenCount{std::string{suffix}, value->get<int64_t>()});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user