Reset everything in monitor move constructor

master
BlackMark 2020-07-12 19:41:52 +02:00
parent 5e4aba8140
commit 86dbcfda4f
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ Monitor::Monitor(Monitor&& other) noexcept
other.m_hMonitor = 0;
other.m_physicalMonitor.name.clear();
other.m_physicalMonitor.handle = 0;
other.m_brightnessRange.reset();
other.m_errorOccurred = false;
}
Monitor::~Monitor()