From 6dca4dd056f2e0d25c977fe159b98bf09422980c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 25 Oct 2010 01:15:17 -0400 Subject: [PATCH] Code Cleanup - Simplified one call. --- src/recur.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recur.cpp b/src/recur.cpp index e8d06eafe..c54955f65 100644 --- a/src/recur.cpp +++ b/src/recur.cpp @@ -105,7 +105,7 @@ void handleRecurrence () sprintf (dueDate, "%u", (unsigned int) d->toEpoch ()); rec.set ("due", dueDate); // Store generated due date. - if (t->get ("wait").size()) + if (t->has ("wait")) { Date old_wait (atoi (t->get ("wait").c_str ())); Date old_due (atoi (t->get ("due").c_str ()));