mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix CodeQL findings
This commit is contained in:
parent
12e92f5bdd
commit
d05c699307
@ -19,7 +19,6 @@ public:
|
|||||||
static EventHandler* getInstance();
|
static EventHandler* getInstance();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
virtual void handleSettingsUpdate(settings::type type, const QJsonDocument& config);
|
|
||||||
|
|
||||||
void suspend(bool sleep);
|
void suspend(bool sleep);
|
||||||
|
|
||||||
|
@ -28,14 +28,6 @@ EventHandler* EventHandler::getInstance()
|
|||||||
return &instance;
|
return &instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventHandler::handleSettingsUpdate(settings::type type, const QJsonDocument& config)
|
|
||||||
{
|
|
||||||
if(type == settings::OSEVENTS)
|
|
||||||
{
|
|
||||||
const QJsonObject& obj = config.object();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void EventHandler::suspend()
|
void EventHandler::suspend()
|
||||||
{
|
{
|
||||||
suspend(true);
|
suspend(true);
|
||||||
|
@ -35,8 +35,8 @@ OsEventHandlerBase::~OsEventHandlerBase()
|
|||||||
{
|
{
|
||||||
QObject::disconnect(this, &OsEventHandlerBase::signalEvent, EventHandler::getInstance(), &EventHandler::handleEvent);
|
QObject::disconnect(this, &OsEventHandlerBase::signalEvent, EventHandler::getInstance(), &EventHandler::handleEvent);
|
||||||
|
|
||||||
unregisterLockHandler();
|
OsEventHandlerBase::unregisterLockHandler();
|
||||||
unregisterOsEventHandler();
|
OsEventHandlerBase::unregisterOsEventHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OsEventHandlerBase::handleSettingsUpdate(settings::type type, const QJsonDocument& config)
|
void OsEventHandlerBase::handleSettingsUpdate(settings::type type, const QJsonDocument& config)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user