From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/gui/theme.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/theme.h') diff --git a/src/gui/theme.h b/src/gui/theme.h index 9e9badffa..91d1064be 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -136,14 +136,14 @@ class Theme final : public Palette, const unsigned int alpha = 255U) A_WARN_UNUSED { - if (static_cast(type) >= mColors.size()) + if (CAST_SIZE(type) >= mColors.size()) { logger->log("incorrect color request type: %d from %u", - static_cast(type), - static_cast(mColors.size())); + CAST_S32(type), + CAST_U32(mColors.size())); type = ThemeColorId::BROWSERBOX; } - Color* col = &mColors[static_cast(type)].color; + Color* col = &mColors[CAST_SIZE(type)].color; col->a = alpha; return *col; } -- cgit v1.2.3-70-g09d2