Some fixes for suggestions from cppcheck.

This commit is contained in:
Stephen Anthony 2022-08-09 14:34:53 -02:30
parent 511fbb3644
commit 4fecd8fc97
3 changed files with 3 additions and 4 deletions

View File

@ -77,8 +77,7 @@ void PaletteHandler::cyclePalette(int direction)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool PaletteHandler::isCustomAdjustable() const bool PaletteHandler::isCustomAdjustable() const
{ {
return myCurrentAdjustable >= CUSTOM_START return myCurrentAdjustable <= CUSTOM_END;
&& myCurrentAdjustable <= CUSTOM_END;
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -39,7 +39,7 @@ class PaletteHandler
static constexpr float DEF_RGB_SHIFT = 0.0F; static constexpr float DEF_RGB_SHIFT = 0.0F;
static constexpr float MAX_RGB_SHIFT = 22.5F; static constexpr float MAX_RGB_SHIFT = 22.5F;
enum Adjustables { enum Adjustables : uInt32 {
PHASE_SHIFT, PHASE_SHIFT,
RED_SCALE, RED_SCALE,
GREEN_SCALE, GREEN_SCALE,

View File

@ -211,7 +211,7 @@ Bankswitch::Sizes = {{
{ 8_KB, 8_KB+5 }, // _WDSW { 8_KB, 8_KB+5 }, // _WDSW
{ 64_KB, 64_KB }, // _X07 { 64_KB, 64_KB }, // _X07
#if defined(CUSTOM_ARM) #if defined(CUSTOM_ARM)
{ Bankswitch::any_KB, Bankswitch::any_KB } } { Bankswitch::any_KB, Bankswitch::any_KB }
#endif #endif
}}; }};
#endif // GUI_SUPPORT #endif // GUI_SUPPORT