mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Replace a function name mapping with the real function call.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15936 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
29a5d3fbca
commit
cfa50383a5
@ -40,8 +40,6 @@
|
||||
#define XACC_ACCOUNT_P_H
|
||||
|
||||
#include "Account.h"
|
||||
#include "gnc-commodity.h"
|
||||
#include "gnc-engine.h"
|
||||
|
||||
/** STRUCTS *********************************************************/
|
||||
|
||||
@ -69,9 +67,4 @@ void xaccAccountSetGUID (Account *account, const GUID *guid);
|
||||
/* Register Accounts with the engine */
|
||||
gboolean xaccAccountRegister (void);
|
||||
|
||||
/** killed for now, need to resurect this or something similar
|
||||
* * for transactional/dirty kvp. Later. Right now a place holder
|
||||
* */
|
||||
#define xaccAccountSetSlots_nc(A,S) qof_instance_set_slots(QOF_INSTANCE(A),S)
|
||||
|
||||
#endif /* XACC_ACCOUNT_P_H */
|
||||
|
@ -668,7 +668,7 @@ add_closing_balances (Account *parent,
|
||||
kvp_frame_set_guid (cwd, "/book/prev-acct", xaccAccountGetGUID (candidate));
|
||||
kvp_frame_set_guid (cwd, "/book/prev-book", qof_book_get_guid(closed_book));
|
||||
|
||||
xaccAccountSetSlots_nc (twin, twin->inst.kvp_data);
|
||||
qof_instance_set_slots(QOF_INSTANCE(twin), twin->inst.kvp_data);
|
||||
|
||||
/* -------------------------------- */
|
||||
/* Add KVP to closed account, indicating where
|
||||
@ -678,7 +678,7 @@ add_closing_balances (Account *parent,
|
||||
kvp_frame_set_guid (cwd, "/book/next-book", qof_book_get_guid(open_book));
|
||||
kvp_frame_set_guid (cwd, "/book/next-acct", xaccAccountGetGUID (twin));
|
||||
|
||||
xaccAccountSetSlots_nc (candidate, candidate->inst.kvp_data);
|
||||
qof_instance_set_slots(QOF_INSTANCE(candidate), candidate->inst.kvp_data);
|
||||
|
||||
/* -------------------------------- */
|
||||
/* We need to carry a balance on any account that is not
|
||||
|
@ -285,7 +285,7 @@ xaccAccountSetDefaultGainAccount (Account *acc, Account *gain_acct)
|
||||
xaccAccountBeginEdit (acc);
|
||||
vvv = kvp_value_new_guid (xaccAccountGetGUID (gain_acct));
|
||||
kvp_frame_set_slot_nc (cwd, cur_name, vvv);
|
||||
xaccAccountSetSlots_nc (acc, acc->inst.kvp_data);
|
||||
qof_instance_set_slots(QOF_INSTANCE(acc), acc->inst.kvp_data);
|
||||
xaccAccountCommitEdit (acc);
|
||||
}
|
||||
|
||||
@ -352,7 +352,7 @@ GetOrMakeGainAcct (Account *acc, gnc_commodity * currency)
|
||||
|
||||
vvv = kvp_value_new_guid (xaccAccountGetGUID (gain_acct));
|
||||
kvp_frame_set_slot_nc (cwd, cur_name, vvv);
|
||||
xaccAccountSetSlots_nc (acc, acc->inst.kvp_data);
|
||||
qof_instance_set_slots(QOF_INSTANCE(acc), acc->inst.kvp_data);
|
||||
xaccAccountCommitEdit (acc);
|
||||
|
||||
}
|
||||
|
@ -1200,7 +1200,7 @@ get_random_account(QofBook *book)
|
||||
|
||||
xaccAccountSetCommodity(ret, get_random_commodity(book));
|
||||
|
||||
xaccAccountSetSlots_nc(ret, get_random_kvp_frame());
|
||||
qof_instance_set_slots(QOF_INSTANCE(ret), get_random_kvp_frame());
|
||||
|
||||
root = gnc_book_get_root_account (book);
|
||||
if (!root)
|
||||
@ -1233,7 +1233,7 @@ make_random_changes_to_account (QofBook *book, Account *account)
|
||||
|
||||
xaccAccountSetCommodity (account, get_random_commodity(book));
|
||||
|
||||
xaccAccountSetSlots_nc (account, get_random_kvp_frame());
|
||||
qof_instance_set_slots(QOF_INSTANCE(account), get_random_kvp_frame());
|
||||
|
||||
xaccAccountCommitEdit (account);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user