aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-30 21:41:08 -0300
committerRobert Tari <robert@tari.in>2021-07-05 00:44:12 +0200
commit05564ab71ebdadbb100ffac690d278c9982224f5 (patch)
treefd061edc7a7e548d845ba1a731e5ca04d42e9f04 /src
parent031e8a963225ca2ab560224944c7636668a70838 (diff)
downloadayatana-indicator-datetime-05564ab71ebdadbb100ffac690d278c9982224f5.tar.gz
ayatana-indicator-datetime-05564ab71ebdadbb100ffac690d278c9982224f5.tar.bz2
ayatana-indicator-datetime-05564ab71ebdadbb100ffac690d278c9982224f5.zip
Create a constructor for Alarm class.
Diffstat (limited to 'src')
-rw-r--r--src/appointment.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/appointment.cpp b/src/appointment.cpp
index ebd5a47..a6800dd 100644
--- a/src/appointment.cpp
+++ b/src/appointment.cpp
@@ -29,7 +29,8 @@ namespace datetime {
bool Alarm::operator==(const Alarm& that) const
{
- return (text==that.text)
+ return (type==that.type)
+ && (text==that.text)
&& (audio_url==that.audio_url)
&& (this->time==that.time);
}