Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mark methods as const

  • Loading branch information...
commit 4204a29a0678d2384e4b88d4dc185b2da2e9bedf 1 parent 11b85e5
@falconindy authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 notify.h
View
10 notify.h
@@ -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) {

0 comments on commit 4204a29

Please sign in to comment.
Something went wrong with that request. Please try again.