From 259c62b01bd61229af019c337e366758c07214a4 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 5 Jul 2020 21:24:40 +0200 Subject: [PATCH] Move member variable before functions --- AdaptiveBrightness/monitor.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AdaptiveBrightness/monitor.hpp b/AdaptiveBrightness/monitor.hpp index bd6a368..2ef8938 100644 --- a/AdaptiveBrightness/monitor.hpp +++ b/AdaptiveBrightness/monitor.hpp @@ -36,6 +36,11 @@ class Monitor { friend BOOL detail::enumMonitorsCallback(HMONITOR, HDC, LPRECT, LPARAM); + const HMONITOR m_hMonitor; + const PhysicalMonitor m_physicalMonitor; + + std::optional> 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> m_brightnessRange; }; #endif