Use function version of QOF_COMMIT_EDIT_PART2.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13395 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-02-26 18:36:05 +00:00
parent 082212a7eb
commit cec7bb732c
11 changed files with 13 additions and 14 deletions

View File

@ -418,7 +418,7 @@ static inline void on_done (QofInstance *inst) {}
void gncBillTermCommitEdit (GncBillTerm *term)
{
QOF_COMMIT_EDIT_PART1 (&term->inst);
QOF_COMMIT_EDIT_PART2 (&term->inst, gncBillTermOnError,
qof_commit_edit_part2 (&term->inst, gncBillTermOnError,
on_done, bill_free);
}

View File

@ -387,7 +387,7 @@ static inline void cust_free (QofInstance *inst)
void gncCustomerCommitEdit (GncCustomer *cust)
{
QOF_COMMIT_EDIT_PART1 (&cust->inst);
QOF_COMMIT_EDIT_PART2 (&cust->inst, gncCustomerOnError,
qof_commit_edit_part2 (&cust->inst, gncCustomerOnError,
gncCustomerOnDone, cust_free);
}

View File

@ -366,7 +366,7 @@ static inline void emp_free (QofInstance *inst)
void gncEmployeeCommitEdit (GncEmployee *employee)
{
QOF_COMMIT_EDIT_PART1 (&employee->inst);
QOF_COMMIT_EDIT_PART2 (&employee->inst, gncEmployeeOnError,
qof_commit_edit_part2 (&employee->inst, gncEmployeeOnError,
gncEmployeeOnDone, emp_free);
}

View File

@ -1174,7 +1174,7 @@ static inline void entry_free (QofInstance *inst)
void gncEntryCommitEdit (GncEntry *entry)
{
QOF_COMMIT_EDIT_PART1 (&entry->inst);
QOF_COMMIT_EDIT_PART2 (&entry->inst, gncEntryOnError,
qof_commit_edit_part2 (&entry->inst, gncEntryOnError,
gncEntryOnDone, entry_free);
}

View File

@ -1423,7 +1423,7 @@ static inline void invoice_free (QofInstance *inst)
void gncInvoiceCommitEdit (GncInvoice *invoice)
{
QOF_COMMIT_EDIT_PART1 (&invoice->inst);
QOF_COMMIT_EDIT_PART2 (&invoice->inst, gncInvoiceOnError,
qof_commit_edit_part2 (&invoice->inst, gncInvoiceOnError,
gncInvoiceOnDone, invoice_free);
}

View File

@ -279,7 +279,7 @@ static inline void gncJobOnDone (QofInstance *qof) { }
void gncJobCommitEdit (GncJob *job)
{
QOF_COMMIT_EDIT_PART1 (&job->inst);
QOF_COMMIT_EDIT_PART2 (&job->inst, gncJobOnError,
qof_commit_edit_part2 (&job->inst, gncJobOnError,
gncJobOnDone, job_free);
}

View File

@ -353,7 +353,7 @@ static inline void order_free (QofInstance *inst)
void gncOrderCommitEdit (GncOrder *order)
{
QOF_COMMIT_EDIT_PART1 (&order->inst);
QOF_COMMIT_EDIT_PART2 (&order->inst, gncOrderOnError,
qof_commit_edit_part2 (&order->inst, gncOrderOnError,
gncOrderOnDone, order_free);
}

View File

@ -525,7 +525,7 @@ static inline void table_free (QofInstance *inst)
void gncTaxTableCommitEdit (GncTaxTable *table)
{
QOF_COMMIT_EDIT_PART1 (&table->inst);
QOF_COMMIT_EDIT_PART2 (&table->inst, gncTaxTableOnError,
qof_commit_edit_part2 (&table->inst, gncTaxTableOnError,
gncTaxTableOnDone, table_free);
}

View File

@ -443,7 +443,7 @@ static inline void vendor_free (QofInstance *inst)
void gncVendorCommitEdit (GncVendor *vendor)
{
QOF_COMMIT_EDIT_PART1 (&vendor->inst);
QOF_COMMIT_EDIT_PART2 (&vendor->inst, gncVendorOnError,
qof_commit_edit_part2 (&vendor->inst, gncVendorOnError,
gncVendorOnDone, vendor_free);
}

View File

@ -342,9 +342,8 @@ xaccAccountCommitEdit (Account *acc)
xaccGroupInsertAccount(acc->parent, acc);
}
QOF_COMMIT_EDIT_PART2 (&acc->inst, on_err, noop, acc_free);
gnc_engine_gen_event (&acc->inst.entity, GNC_EVENT_MODIFY);
if (qof_commit_edit_part2(&acc->inst, on_err, noop, acc_free))
gnc_engine_gen_event (&acc->inst.entity, GNC_EVENT_MODIFY);
}
void

View File

@ -152,7 +152,7 @@ void
gnc_price_commit_edit (GNCPrice *p)
{
QOF_COMMIT_EDIT_PART1 (&p->inst);
QOF_COMMIT_EDIT_PART2 (&p->inst, commit_err, noop, noop);
qof_commit_edit_part2 (&p->inst, commit_err, noop, noop);
}
/* ==================================================================== */
@ -167,7 +167,7 @@ void
gnc_pricedb_commit_edit (GNCPriceDB *pdb)
{
QOF_COMMIT_EDIT_PART1 (&pdb->inst);
QOF_COMMIT_EDIT_PART2 (&pdb->inst, commit_err, noop, noop);
qof_commit_edit_part2 (&pdb->inst, commit_err, noop, noop);
}
/* ==================================================================== */