mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-30 12:44:01 -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)
|
if (strlen(suffix) == GUID_ENCODING_LENGTH)
|
||||||
{
|
{
|
||||||
tokenInfo.total_count += value->get<int64_t>();
|
tokenInfo.total_count += value->get<int64_t>();
|
||||||
AccountTokenCount this_account;
|
|
||||||
/*By convention, the key ends with the account GUID.*/
|
/*By convention, the key ends with the account GUID.*/
|
||||||
this_account.account_guid = std::string{suffix};
|
tokenInfo.accounts.emplace_back(AccountTokenCount{std::string{suffix}, value->get<int64_t>()});
|
||||||
this_account.token_count = value->get<int64_t>();
|
|
||||||
tokenInfo.accounts.push_back(this_account);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user