better to just call the callback doer in a lambda
This commit is contained in:
parent
74de2c07af
commit
a2bd30dbe5
|
@ -146,25 +146,6 @@ void UniverseArbitrator::deleteSourceUniverse(const DATA::data_header& src)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief ArbitratingUniverse::dataChangedNotifier
|
||||
* @param dmx
|
||||
*/
|
||||
void UniverseArbitrator::dataChangedNotifier(DMX::Universe* dmx)
|
||||
{
|
||||
#ifdef RTTI_ENABLED
|
||||
auto sacn = dynamic_cast<sACN::Universe*>(dmx);
|
||||
#else
|
||||
auto sacn = static_cast<sACN::Universe*>(dmx);
|
||||
#endif
|
||||
auto universe = dominant_();
|
||||
if (!universe)
|
||||
return;
|
||||
if (sacn->metadata() == universe->metadata())
|
||||
doDataCallbacks();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief ArbitratingUniverse::onSourceListChange
|
||||
* @param cb
|
||||
|
|
|
@ -61,7 +61,6 @@ public:
|
|||
|
||||
// Source universes:
|
||||
void deleteSourceUniverse(const DATA::data_header&);
|
||||
void dataChangedNotifier(DMX::Universe* universe);
|
||||
|
||||
// DMX::Universe overrides:
|
||||
virtual uint8_t status() const override;
|
||||
|
|
Loading…
Reference in New Issue