Reset everything in monitor move constructor

This commit is contained in:
BlackMark 2020-07-12 19:41:52 +02:00
parent 5e4aba8140
commit 86dbcfda4f

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()