From 35d742677a59b4340b24f703bad666f3700b14b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Feb 2016 21:21:36 +0300 Subject: Use inline attribute in some critial performance functions. --- src/gui/widgets/widget2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/widgets/widget2.h b/src/gui/widgets/widget2.h index bbf9beff6..32e51d7c3 100644 --- a/src/gui/widgets/widget2.h +++ b/src/gui/widgets/widget2.h @@ -37,14 +37,14 @@ class Widget2 notfinal inline const Color &getThemeColor(const ThemeColorIdT type, const unsigned int alpha = 255U) - const A_WARN_UNUSED + const A_WARN_UNUSED A_INLINE { return theme->getColor(type + mPaletteOffset, alpha); } inline const Color &getThemeCharColor(const signed char c, bool &valid) - const A_WARN_UNUSED + const A_WARN_UNUSED A_INLINE { if (!theme) return Palette::BLACK; -- cgit v1.2.3-60-g2f50