summaryrefslogtreecommitdiff
path: root/src/gui/theme.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-07 16:18:13 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-07 16:18:13 +0300
commit9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (patch)
tree798117abd4dc7e610997d59d530a96ddc1509f53 /src/gui/theme.h
parent4429cb14e9e187edef27aba692a4266733f79c17 (diff)
downloadplus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz
plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2
plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz
plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip
Replace most static_cast<Type> to shorter versions from defines.
Diffstat (limited to 'src/gui/theme.h')
-rw-r--r--src/gui/theme.h8
1 files changed, 4 insertions, 4 deletions
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<size_t>(type) >= mColors.size())
+ if (CAST_SIZE(type) >= mColors.size())
{
logger->log("incorrect color request type: %d from %u",
- static_cast<int>(type),
- static_cast<unsigned int>(mColors.size()));
+ CAST_S32(type),
+ CAST_U32(mColors.size()));
type = ThemeColorId::BROWSERBOX;
}
- Color* col = &mColors[static_cast<size_t>(type)].color;
+ Color* col = &mColors[CAST_SIZE(type)].color;
col->a = alpha;
return *col;
}