Commit 8c12dc6c23be951d0dde119fffa14b3591a615cc
Committed by
Moritz Wirger
1 parent
f2baaccf
Make hasBrightnessControl, hasTemperatureControl and hasColorControl of HueLight constant
Showing
1 changed file
with
3 additions
and
3 deletions
hueplusplus/include/HueLight.h
| @@ -148,7 +148,7 @@ public: | @@ -148,7 +148,7 @@ public: | ||
| 148 | //! \brief Function to check whether this light has brightness control | 148 | //! \brief Function to check whether this light has brightness control |
| 149 | //! | 149 | //! |
| 150 | //! \return Bool that is true when the light has specified abilities and false when not | 150 | //! \return Bool that is true when the light has specified abilities and false when not |
| 151 | - bool hasBrightnessControl() | 151 | + bool hasBrightnessControl() const |
| 152 | { | 152 | { |
| 153 | return brightnessStrategy != nullptr; | 153 | return brightnessStrategy != nullptr; |
| 154 | }; | 154 | }; |
| @@ -156,7 +156,7 @@ public: | @@ -156,7 +156,7 @@ public: | ||
| 156 | //! \brief Function to check whether this light has color temperature control | 156 | //! \brief Function to check whether this light has color temperature control |
| 157 | //! | 157 | //! |
| 158 | //! \return Bool that is true when the light has specified abilities and false when not | 158 | //! \return Bool that is true when the light has specified abilities and false when not |
| 159 | - bool hasTemperatureControl() | 159 | + bool hasTemperatureControl() const |
| 160 | { | 160 | { |
| 161 | return colorTemperatureStrategy != nullptr; | 161 | return colorTemperatureStrategy != nullptr; |
| 162 | }; | 162 | }; |
| @@ -164,7 +164,7 @@ public: | @@ -164,7 +164,7 @@ public: | ||
| 164 | //! \brief Function to check whether this light has full color control | 164 | //! \brief Function to check whether this light has full color control |
| 165 | //! | 165 | //! |
| 166 | //! \return Bool that is true when the light has specified abilities and false when not | 166 | //! \return Bool that is true when the light has specified abilities and false when not |
| 167 | - bool hasColorControl() | 167 | + bool hasColorControl() const |
| 168 | { | 168 | { |
| 169 | return colorHueStrategy != nullptr; | 169 | return colorHueStrategy != nullptr; |
| 170 | }; | 170 | }; |