mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
More ENTER/LEAVE corrections at function exit points
This commit is contained in:
parent
0e7011665a
commit
f8a27b7140
@ -529,7 +529,10 @@ xaccTransScrubImbalance (Transaction *trans, Account *root,
|
||||
|
||||
/* Return immediately if things are balanced. */
|
||||
if (xaccTransIsBalanced (trans))
|
||||
{
|
||||
LEAVE ("transaction is balanced");
|
||||
return;
|
||||
}
|
||||
|
||||
currency = xaccTransGetCurrency (trans);
|
||||
|
||||
@ -626,7 +629,7 @@ xaccTransScrubImbalance (Transaction *trans, Account *root,
|
||||
imbal_list = xaccTransGetImbalance (trans);
|
||||
if (!imbal_list)
|
||||
{
|
||||
LEAVE("()");
|
||||
LEAVE("transaction is balanced");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -231,6 +231,8 @@ gnc_lot_free(GNCLot* lot)
|
||||
priv->is_closed = TRUE;
|
||||
/* qof_instance_release (&lot->inst); */
|
||||
g_object_unref (lot);
|
||||
|
||||
LEAVE();
|
||||
}
|
||||
|
||||
void
|
||||
@ -559,6 +561,7 @@ gnc_lot_remove_split (GNCLot *lot, Split *split)
|
||||
}
|
||||
gnc_lot_commit_edit(lot);
|
||||
qof_event_gen (QOF_INSTANCE(lot), QOF_EVENT_MODIFY, NULL);
|
||||
LEAVE("removed from lot");
|
||||
}
|
||||
|
||||
/* ============================================================== */
|
||||
|
Loading…
Reference in New Issue
Block a user