mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Avoid copying local instance of AccountTokenCount
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user