summaryrefslogtreecommitdiffstats
path: root/kalarm/find.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2015-08-07 17:06:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2015-08-27 23:21:13 +0900
commitc822d344caac7367564ef929037082e3374267be (patch)
tree5be64ca958a093c3175888b4e15a22724fac4d39 /kalarm/find.cpp
parent3ba5901c39be9c956e74accdafe1a8b8b745e0e5 (diff)
downloadtdepim-c822d344caac7367564ef929037082e3374267be.tar.gz
tdepim-c822d344caac7367564ef929037082e3374267be.zip
Fixed KAlarm building warnings. Minor style patch up. Fixed possible error in treating deferred evens (see kalarm/alarmevent.cpp:1739).
(cherry picked from commit c036d97d35d25c4511d9569d40c1de07dab96bb6) Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kalarm/find.cpp')
-rw-r--r--kalarm/find.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kalarm/find.cpp b/kalarm/find.cpp
index 9a469e57..8e35cbe9 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 <djarvie@kde.org>
*
@@ -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())
{