Move member variable before functions

This commit is contained in:
BlackMark 2020-07-05 21:24:40 +02:00
parent 5197295368
commit 259c62b01b

View File

@ -36,6 +36,11 @@ class Monitor {
friend BOOL detail::enumMonitorsCallback(HMONITOR, HDC, LPRECT, LPARAM);
const HMONITOR m_hMonitor;
const PhysicalMonitor m_physicalMonitor;
std::optional<std::pair<DWORD, DWORD>> m_brightnessRange;
Monitor(HMONITOR hMonitor, PHYSICAL_MONITOR physicalMonitor);
bool hasBrightnessCapability() const;
@ -45,11 +50,6 @@ class Monitor {
{
return (value - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
}
const HMONITOR m_hMonitor;
const PhysicalMonitor m_physicalMonitor;
std::optional<std::pair<DWORD, DWORD>> m_brightnessRange;
};
#endif