SYNERGY-1088 Fix code smells

This commit is contained in:
SerhiiGadzhilov 2021-07-23 19:08:26 +03:00
parent 38a9014f26
commit 6ce8768691
2 changed files with 4 additions and 6 deletions

View file

@ -36,11 +36,6 @@ bool sleepInhibitCall(bool state, ArchSystemUnix::InhibitScreenServices serviceI
} }
XWindowsPowerManager::XWindowsPowerManager()
{
}
XWindowsPowerManager::~XWindowsPowerManager() XWindowsPowerManager::~XWindowsPowerManager()
{ {
enableSleep(); enableSleep();

View file

@ -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