mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
get rid of spurious argument
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8130 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
93d30df886
commit
413ff3ad12
@ -52,7 +52,7 @@
|
||||
|
||||
static short module = MOD_SCRUB;
|
||||
static Account * GetOrMakeAccount (AccountGroup *root, Transaction *trans,
|
||||
const char *name_root, GNCBook *book);
|
||||
const char *name_root);
|
||||
|
||||
/* ================================================================ */
|
||||
|
||||
@ -125,7 +125,7 @@ xaccTransScrubOrphans (Transaction *trans, AccountGroup *root,
|
||||
|
||||
DEBUG ("Found an orphan \n");
|
||||
|
||||
orph = GetOrMakeAccount (root, trans, _("Orphan"), book);
|
||||
orph = GetOrMakeAccount (root, trans, _("Orphan"));
|
||||
if (!orph)
|
||||
continue;
|
||||
|
||||
@ -314,7 +314,7 @@ xaccTransScrubImbalance (Transaction *trans, AccountGroup *root,
|
||||
return;
|
||||
|
||||
if (!parent)
|
||||
account = GetOrMakeAccount (root, trans, _("Imbalance"), book);
|
||||
account = GetOrMakeAccount (root, trans, _("Imbalance"));
|
||||
else
|
||||
account = parent;
|
||||
|
||||
@ -533,7 +533,7 @@ xaccGroupScrubCommodities (AccountGroup *group, GNCBook *book)
|
||||
|
||||
static Account *
|
||||
GetOrMakeAccount (AccountGroup *root, Transaction *trans,
|
||||
const char *name_root, GNCBook *book)
|
||||
const char *name_root)
|
||||
{
|
||||
gnc_commodity * currency;
|
||||
char * accname;
|
||||
@ -558,7 +558,7 @@ GetOrMakeAccount (AccountGroup *root, Transaction *trans,
|
||||
if (acc == NULL)
|
||||
{
|
||||
/* guess not. We'll have to build one */
|
||||
acc = xaccMallocAccount (book);
|
||||
acc = xaccMallocAccount (root->book);
|
||||
xaccAccountBeginEdit (acc);
|
||||
xaccAccountSetName (acc, accname);
|
||||
xaccAccountSetCommodity (acc, currency);
|
||||
|
Loading…
Reference in New Issue
Block a user