From 8c12dc6c23be951d0dde119fffa14b3591a615cc Mon Sep 17 00:00:00 2001 From: Nodeduino Date: Sat, 18 Nov 2017 19:50:57 +0100 Subject: [PATCH] Make hasBrightnessControl, hasTemperatureControl and hasColorControl of HueLight constant --- hueplusplus/include/HueLight.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hueplusplus/include/HueLight.h b/hueplusplus/include/HueLight.h index 92bc217..cfa3b84 100755 --- a/hueplusplus/include/HueLight.h +++ b/hueplusplus/include/HueLight.h @@ -148,7 +148,7 @@ public: //! \brief Function to check whether this light has brightness control //! //! \return Bool that is true when the light has specified abilities and false when not - bool hasBrightnessControl() + bool hasBrightnessControl() const { return brightnessStrategy != nullptr; }; @@ -156,7 +156,7 @@ public: //! \brief Function to check whether this light has color temperature control //! //! \return Bool that is true when the light has specified abilities and false when not - bool hasTemperatureControl() + bool hasTemperatureControl() const { return colorTemperatureStrategy != nullptr; }; @@ -164,7 +164,7 @@ public: //! \brief Function to check whether this light has full color control //! //! \return Bool that is true when the light has specified abilities and false when not - bool hasColorControl() + bool hasColorControl() const { return colorHueStrategy != nullptr; }; -- libgit2 0.21.4