diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-11 21:21:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-11 21:51:42 +0300 |
commit | 35d742677a59b4340b24f703bad666f3700b14b5 (patch) | |
tree | 4fba5450036a21c94064706258c5326252fda73a /src/gui/widgets/widget2.h | |
parent | 2b60803357db480eb5214a758a54363d4172987e (diff) | |
download | manaplus-35d742677a59b4340b24f703bad666f3700b14b5.tar.gz manaplus-35d742677a59b4340b24f703bad666f3700b14b5.tar.bz2 manaplus-35d742677a59b4340b24f703bad666f3700b14b5.tar.xz manaplus-35d742677a59b4340b24f703bad666f3700b14b5.zip |
Use inline attribute in some critial performance functions.
Diffstat (limited to 'src/gui/widgets/widget2.h')
-rw-r--r-- | src/gui/widgets/widget2.h | 4 |
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; |