mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[SX-book.c] tidy for loop
because splits will need to be g_list_free in a future commit
This commit is contained in:
parent
f21f4f4264
commit
cc10b9a0b7
@ -375,9 +375,9 @@ gnc_sx_get_sxes_referencing_account(QofBook *book, Account *acct)
|
||||
{
|
||||
SchedXaction *sx = (SchedXaction*)sx_list->data;
|
||||
GList *splits = xaccSchedXactionGetSplits(sx);
|
||||
for (; splits != NULL; splits = splits->next)
|
||||
for (GList *node = splits; node; node = node->next)
|
||||
{
|
||||
Split *s = (Split*)splits->data;
|
||||
Split *s = (Split*)node->data;
|
||||
GncGUID *guid = NULL;
|
||||
qof_instance_get (QOF_INSTANCE (s), "sx-account", &guid, NULL);
|
||||
if (guid_equal(acct_guid, guid))
|
||||
|
Loading…
Reference in New Issue
Block a user