mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Separate out the tests; in case they occur, you then know which condition to look for.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15604 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
41089913e2
commit
493504179c
@ -137,8 +137,10 @@ recurrenceNextInstance(const Recurrence *r, const GDate *ref, GDate *next)
|
||||
const GDate *start;
|
||||
guint mult;
|
||||
|
||||
g_return_if_fail(r && ref);
|
||||
g_return_if_fail(g_date_valid(&r->start) && g_date_valid(ref));
|
||||
g_return_if_fail(r);
|
||||
g_return_if_fail(ref);
|
||||
g_return_if_fail(g_date_valid(&r->start));
|
||||
g_return_if_fail(g_date_valid(ref));
|
||||
|
||||
/* If the ref date comes before the start date then the next
|
||||
occurrence is always the start date, and we're done. */
|
||||
|
Loading…
Reference in New Issue
Block a user