revert to fast implementation of xaccGroupGetSubaccounts.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6204 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-12-04 22:53:04 +00:00
parent 38f377be30
commit 226d8dc9a5

View File

@ -336,7 +336,7 @@ xaccGroupGetNumSubAccounts (AccountGroup *grp)
\********************************************************************/
static void
xaccAppendAccounts (AccountGroup *grp, GList **accounts_p)
xaccPrependAccounts (AccountGroup *grp, GList **accounts_p)
{
GList *node;
@ -346,9 +346,9 @@ xaccAppendAccounts (AccountGroup *grp, GList **accounts_p)
{
Account *account = node->data;
*accounts_p = g_list_append (*accounts_p, account);
*accounts_p = g_list_prepend (*accounts_p, account);
xaccAppendAccounts (account->children, accounts_p);
xaccPrependAccounts (account->children, accounts_p);
}
}
@ -359,9 +359,9 @@ xaccGroupGetSubAccounts (AccountGroup *grp)
if (!grp) return NULL;
xaccAppendAccounts (grp, &accounts);
xaccPrependAccounts (grp, &accounts);
return accounts;
return g_list_reverse (accounts);
}
AccountList *