diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-08-23 08:32:42 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-08-23 08:32:42 -0400 |
commit | 4204a29a0678d2384e4b88d4dc185b2da2e9bedf (patch) | |
tree | e7d5f5a64903798823b3e0975699028d336bf9d4 | |
parent | 11b85e55db3f6ed29a040b53041a4aa9cf1a10df (diff) | |
download | mirror-ponymix-4204a29a0678d2384e4b88d4dc185b2da2e9bedf.tar.gz mirror-ponymix-4204a29a0678d2384e4b88d4dc185b2da2e9bedf.tar.bz2 mirror-ponymix-4204a29a0678d2384e4b88d4dc185b2da2e9bedf.zip |
mark methods as const
-rw-r--r-- | notify.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -17,7 +17,7 @@ class Notifier { public: virtual ~Notifier() {} - virtual void Notify(enum NotificationType type, long value, bool mute) = 0; + virtual void Notify(enum NotificationType type, long value, bool mute) const = 0; protected: bool initialized_; @@ -26,14 +26,14 @@ class Notifier { class NullNotifier : public Notifier { public: virtual ~NullNotifier() {} - virtual void Notify(enum NotificationType, long, bool) {} + virtual void Notify(enum NotificationType, long, bool) const {} }; class CommandLineNotifier : public Notifier { public: virtual ~CommandLineNotifier() {} - virtual void Notify(enum NotificationType type, long value, bool) { + virtual void Notify(enum NotificationType type, long value, bool) const { switch (type) { case NOTIFY_VOLUME: case NOTIFY_BALANCE: @@ -56,7 +56,7 @@ class LibnotifyNotifier : public Notifier { notify_uninit(); } - virtual void Notify(enum NotificationType type, long value, bool mute) { + virtual void Notify(enum NotificationType type, long value, bool mute) const { switch (type) { case NOTIFY_BALANCE: break; @@ -69,7 +69,7 @@ class LibnotifyNotifier : public Notifier { } private: - void volchange(long vol, bool mute) { + void volchange(long vol, bool mute) const { const char* icon = "notification-audio-volume-muted"; if (!mute) { |