From c036d97d35d25c4511d9569d40c1de07dab96bb6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 7 Aug 2015 17:06:29 +0900 Subject: Fixed KAlarm building warnings. Minor style patch up. Fixed possible error in treating deferred evens (see kalarm/alarmevent.cpp:1739). Signed-off-by: Michele Calgaro --- kalarm/find.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kalarm/find.cpp') diff --git a/kalarm/find.cpp b/kalarm/find.cpp index 9a469e57a..8e35cbe91 100644 --- a/kalarm/find.cpp +++ b/kalarm/find.cpp @@ -1,5 +1,5 @@ /* - * find.cpp - search facility + * find.cpp - search facility * Program: kalarm * Copyright © 2005,2006,2008 by David Jarvie * @@ -298,8 +298,8 @@ void Find::findNext(bool forward, bool sort, bool checkEnd, bool fromCurrent) last = true; // we've wrapped round and reached the starting alarm again fromCurrent = false; bool live = !event.expired(); - if (live && !(mOptions & FIND_LIVE) - || !live && !(mOptions & FIND_EXPIRED)) + if ((live && !(mOptions & FIND_LIVE)) + || (!live && !(mOptions & FIND_EXPIRED))) continue; // we're not searching this type of alarm switch (event.action()) { -- cgit v1.2.1