mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Fix Observable::notifyObservers<> member functions to call specific Observers members explicitly.
This commit is contained in:
parent
4e7103d6d1
commit
a37a505566
@ -39,17 +39,17 @@ public:
|
||||
|
||||
template<typename A1>
|
||||
void notifyObservers(void (Observer::*method)(A1), A1 a1) {
|
||||
m_observers.notifyObservers(method, a1);
|
||||
m_observers.notifyObservers<A1>(method, a1);
|
||||
}
|
||||
|
||||
template<typename A1, typename A2>
|
||||
void notifyObservers(void (Observer::*method)(A1, A2), A1 a1, A2 a2) {
|
||||
m_observers.notifyObservers(method, a1, a2);
|
||||
m_observers.notifyObservers<A1, A2>(method, a1, a2);
|
||||
}
|
||||
|
||||
template<typename A1, typename A2, typename A3>
|
||||
void notifyObservers(void (Observer::*method)(A1, A2, A3), A1 a1, A2 a2, A3 a3) {
|
||||
m_observers.notifyObservers(method, a1, a2, a3);
|
||||
m_observers.notifyObservers<A1, A2, A3>(method, a1, a2, a3);
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user