summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-11 21:21:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-11 21:51:42 +0300
commit35d742677a59b4340b24f703bad666f3700b14b5 (patch)
tree4fba5450036a21c94064706258c5326252fda73a /src/gui/widgets
parent2b60803357db480eb5214a758a54363d4172987e (diff)
downloadmanaverse-35d742677a59b4340b24f703bad666f3700b14b5.tar.gz
manaverse-35d742677a59b4340b24f703bad666f3700b14b5.tar.bz2
manaverse-35d742677a59b4340b24f703bad666f3700b14b5.tar.xz
manaverse-35d742677a59b4340b24f703bad666f3700b14b5.zip
Use inline attribute in some critial performance functions.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/widget2.h4
1 files changed, 2 insertions, 2 deletions
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;