diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-08-07 17:06:29 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-08-27 23:21:13 +0900 |
commit | c822d344caac7367564ef929037082e3374267be (patch) | |
tree | 5be64ca958a093c3175888b4e15a22724fac4d39 /kalarm/lib/datetime.h | |
parent | 3ba5901c39be9c956e74accdafe1a8b8b745e0e5 (diff) | |
download | tdepim-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/lib/datetime.h')
-rw-r--r-- | kalarm/lib/datetime.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kalarm/lib/datetime.h b/kalarm/lib/datetime.h index bcfa434b1..d75aa94d5 100644 --- a/kalarm/lib/datetime.h +++ b/kalarm/lib/datetime.h @@ -73,7 +73,7 @@ class DateTime /** Returns true if the date is null and, if it is a date-time value, the time is also null. */ bool isNull() const { return mDateTime.date().isNull() && (mDateOnly || mDateTime.time().isNull()); } /** Returns true if the date is valid and, if it is a date-time value, the time is also valid. */ - bool isValid() const { return mDateTime.date().isValid() && (mDateOnly || mTimeValid && mDateTime.time().isValid()); } + bool isValid() const { return mDateTime.date().isValid() && (mDateOnly || (mTimeValid && mDateTime.time().isValid())); } /** Returns true if it is date-only value. */ bool isDateOnly() const { return mDateOnly; } /** Sets the value to be either date-only or date-time. @@ -209,8 +209,8 @@ class DateTime private: static TQTime mStartOfDay; TQDateTime mDateTime; - bool mDateOnly; - bool mTimeValid; // whether the time is potentially valid - applicable only if mDateOnly false + bool mDateOnly; + bool mTimeValid; // whether the time is potentially valid - applicable only if mDateOnly false }; /** Returns true if the two values are equal. */ |