SYNERGY-1088 Fix code smells
This commit is contained in:
parent
38a9014f26
commit
6ce8768691
2 changed files with 4 additions and 6 deletions
|
|
@ -36,11 +36,6 @@ bool sleepInhibitCall(bool state, ArchSystemUnix::InhibitScreenServices serviceI
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
XWindowsPowerManager::XWindowsPowerManager()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
XWindowsPowerManager::~XWindowsPowerManager()
|
XWindowsPowerManager::~XWindowsPowerManager()
|
||||||
{
|
{
|
||||||
enableSleep();
|
enableSleep();
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
class XWindowsPowerManager
|
class XWindowsPowerManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
XWindowsPowerManager();
|
XWindowsPowerManager() = default;
|
||||||
~XWindowsPowerManager();
|
~XWindowsPowerManager();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -34,6 +34,9 @@ public:
|
||||||
* @brief Enables automatical sleep
|
* @brief Enables automatical sleep
|
||||||
*/
|
*/
|
||||||
void enableSleep() const;
|
void enableSleep() const;
|
||||||
|
|
||||||
|
XWindowsPowerManager(const XWindowsPowerManager&) = delete;
|
||||||
|
XWindowsPowerManager& operator=(const XWindowsPowerManager&) = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // XWINDOWSPOWERMANAGER_H
|
#endif // XWINDOWSPOWERMANAGER_H
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue