From 3db0accc68bdc0d62b51d2b3f3702857a99c9004 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 3 Feb 2009 00:59:58 -0400 Subject: Added braces to avoid a compiler warning. --- src/timelog.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/timelog.cc') diff --git a/src/timelog.cc b/src/timelog.cc index 31c8e6da..b22b2e60 100644 --- a/src/timelog.cc +++ b/src/timelog.cc @@ -126,10 +126,12 @@ void time_log_t::clock_in(const datetime_t& checkin, { time_entry_t event(checkin, account, desc); - if (! time_entries.empty()) - foreach (time_entry_t& time_entry, time_entries) + if (! time_entries.empty()) { + foreach (time_entry_t& time_entry, time_entries) { if (event.account == time_entry.account) throw parse_error("Cannot double check-in to the same account"); + } + } time_entries.push_back(event); } -- cgit v1.2.3