mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Use nested namespaces (C++17 feature)
This commit is contained in:
@@ -10,27 +10,24 @@
|
||||
|
||||
#include "blackmisc/sharedstate/passiveobserver.h"
|
||||
|
||||
namespace BlackMisc
|
||||
namespace BlackMisc::SharedState
|
||||
{
|
||||
namespace SharedState
|
||||
void CPassiveObserver::setEventSubscription(const CVariant ¶m)
|
||||
{
|
||||
void CPassiveObserver::setEventSubscription(const CVariant ¶m)
|
||||
{
|
||||
QMutexLocker lock(&m_eventSubscriptionMutex);
|
||||
m_eventSubscription = param;
|
||||
lock.unlock();
|
||||
emit eventSubscriptionChanged(param);
|
||||
}
|
||||
QMutexLocker lock(&m_eventSubscriptionMutex);
|
||||
m_eventSubscription = param;
|
||||
lock.unlock();
|
||||
emit eventSubscriptionChanged(param);
|
||||
}
|
||||
|
||||
CVariant CPassiveObserver::eventSubscription() const
|
||||
{
|
||||
QMutexLocker lock(&m_eventSubscriptionMutex);
|
||||
return m_eventSubscription;
|
||||
}
|
||||
CVariant CPassiveObserver::eventSubscription() const
|
||||
{
|
||||
QMutexLocker lock(&m_eventSubscriptionMutex);
|
||||
return m_eventSubscription;
|
||||
}
|
||||
|
||||
void CPassiveObserver::handleEvent(const CVariant& param) const
|
||||
{
|
||||
m_eventHandler(param);
|
||||
}
|
||||
void CPassiveObserver::handleEvent(const CVariant& param) const
|
||||
{
|
||||
m_eventHandler(param);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user