mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Replace some calls to (deprecated) xaccAccountGetGUID() with calls to qof_entity_get_guid()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18306 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
bdd957950a
commit
2bc336a874
@ -670,7 +670,7 @@ add_closing_balances (Account *parent,
|
||||
* of this account. */
|
||||
xaccAccountBeginEdit (twin);
|
||||
cwd = xaccAccountGetSlots (twin);
|
||||
kvp_frame_set_guid (cwd, "/book/prev-acct", xaccAccountGetGUID (candidate));
|
||||
kvp_frame_set_guid (cwd, "/book/prev-acct", qof_entity_get_guid (QOF_INSTANCE(candidate)));
|
||||
kvp_frame_set_guid (cwd, "/book/prev-book", qof_book_get_guid(closed_book));
|
||||
|
||||
qof_instance_set_slots(QOF_INSTANCE(twin), twin->inst.kvp_data);
|
||||
@ -681,7 +681,7 @@ add_closing_balances (Account *parent,
|
||||
xaccAccountBeginEdit (candidate);
|
||||
cwd = xaccAccountGetSlots (candidate);
|
||||
kvp_frame_set_guid (cwd, "/book/next-book", qof_book_get_guid(open_book));
|
||||
kvp_frame_set_guid (cwd, "/book/next-acct", xaccAccountGetGUID (twin));
|
||||
kvp_frame_set_guid (cwd, "/book/next-acct", qof_entity_get_guid (QOF_INSTANCE(twin)));
|
||||
|
||||
qof_instance_set_slots(QOF_INSTANCE(candidate), candidate->inst.kvp_data);
|
||||
|
||||
@ -740,7 +740,7 @@ add_closing_balances (Account *parent,
|
||||
* transaction came from */
|
||||
cwd = xaccTransGetSlots (trans);
|
||||
kvp_frame_set_guid (cwd, "/book/closed-book", qof_book_get_guid(closed_book));
|
||||
kvp_frame_set_guid (cwd, "/book/closed-acct", xaccAccountGetGUID(candidate));
|
||||
kvp_frame_set_guid (cwd, "/book/closed-acct", qof_entity_get_guid(QOF_INSTANCE(candidate)));
|
||||
|
||||
xaccTransCommitEdit (trans);
|
||||
|
||||
|
@ -235,7 +235,7 @@ xaccQueryAddAccountMatch(Query *q, AccountList *acct_list,
|
||||
continue;
|
||||
}
|
||||
|
||||
guid = xaccAccountGetGUID (acc);
|
||||
guid = qof_entity_get_guid (QOF_INSTANCE(acc));
|
||||
if (!guid) {
|
||||
PWARN ("acct returns NULL GUID");
|
||||
continue;
|
||||
@ -285,7 +285,7 @@ xaccQueryAddSingleAccountMatch(Query *q, Account *acc, QofQueryOp op)
|
||||
if (!q || !acc)
|
||||
return;
|
||||
|
||||
guid = xaccAccountGetGUID (acc);
|
||||
guid = qof_entity_get_guid (QOF_INSTANCE(acc));
|
||||
g_return_if_fail (guid);
|
||||
|
||||
list = g_list_prepend (NULL, (gpointer)guid);
|
||||
|
@ -337,7 +337,7 @@ GList*
|
||||
gnc_sx_get_sxes_referencing_account(QofBook *book, Account *acct)
|
||||
{
|
||||
GList *rtn = NULL;
|
||||
const GUID *acct_guid = xaccAccountGetGUID(acct);
|
||||
const GUID *acct_guid = qof_entity_get_guid(QOF_INSTANCE(acct));
|
||||
GList *sx_list = gnc_book_get_schedxactions(book)->sx_list;
|
||||
for (; sx_list != NULL; sx_list = sx_list->next)
|
||||
{
|
||||
|
@ -678,7 +678,7 @@ pack_split_info (TTSplitInfo *s_info, Account *parent_acct,
|
||||
|
||||
kvp_value_delete(tmp_value);
|
||||
|
||||
acc_guid = xaccAccountGetGUID(gnc_ttsplitinfo_get_account(s_info));
|
||||
acc_guid = qof_entity_get_guid(QOF_INSTANCE(gnc_ttsplitinfo_get_account(s_info)));
|
||||
|
||||
tmp_value = kvp_value_new_guid(acc_guid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user