summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugingui/checkbox.cc2
-rw-r--r--plugingui/knob.cc2
-rw-r--r--plugingui/notifier.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc
index ec0456f..6f95287 100644
--- a/plugingui/checkbox.cc
+++ b/plugingui/checkbox.cc
@@ -108,7 +108,7 @@ void CheckBox::internalSetChecked(bool checked)
}
state = checked;
- stateChangedNotifier.notify(state);
+ stateChangedNotifier(state);
repaintEvent(NULL);
}
diff --git a/plugingui/knob.cc b/plugingui/knob.cc
index b843106..f907004 100644
--- a/plugingui/knob.cc
+++ b/plugingui/knob.cc
@@ -181,7 +181,7 @@ void Knob::internalSetValue(float value)
}
currentValue = value;
- valueChangedNotifier.notify(currentValue);
+ valueChangedNotifier(currentValue);
repaintEvent(NULL);
}
diff --git a/plugingui/notifier.h b/plugingui/notifier.h
index 7e6b0d8..a9f8831 100644
--- a/plugingui/notifier.h
+++ b/plugingui/notifier.h
@@ -88,7 +88,7 @@ public:
slots.erase(object);
}
- void notify(Args...args)
+ void operator()(Args... args)
{
for(auto slot = slots.begin(); slot != slots.end(); ++slot) {
(*slot).second(args...);