summaryrefslogtreecommitdiff
path: root/src/gui/outfitwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-20 23:03:30 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-20 23:03:30 +0300
commit8fdaa55cfc951459b0ee079839cdf40e88baa2af (patch)
treec0742a94803dc34dfb146c16f82d019c7a6459f6 /src/gui/outfitwindow.h
parentf1f3fd2696500bf569ea0543a2161d4c0e1fcc91 (diff)
downloadmanaplus-8fdaa55cfc951459b0ee079839cdf40e88baa2af.tar.gz
manaplus-8fdaa55cfc951459b0ee079839cdf40e88baa2af.tar.bz2
manaplus-8fdaa55cfc951459b0ee079839cdf40e88baa2af.tar.xz
manaplus-8fdaa55cfc951459b0ee079839cdf40e88baa2af.zip
Small optimisations.
Diffstat (limited to 'src/gui/outfitwindow.h')
-rw-r--r--src/gui/outfitwindow.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/outfitwindow.h b/src/gui/outfitwindow.h
index 2d2f6271b..60634dbdd 100644
--- a/src/gui/outfitwindow.h
+++ b/src/gui/outfitwindow.h
@@ -28,6 +28,12 @@
#include <guichan/actionlistener.hpp>
#include <guichan/mouselistener.hpp>
+#ifdef __GNUC__
+#define A_PURE __attribute__ ((pure))
+#else
+#define A_PURE
+#endif
+
#define OUTFITS_COUNT 100
#define OUTFIT_ITEM_COUNT 12
@@ -82,9 +88,9 @@ class OutfitWindow : public Window, gcn::ActionListener
void unequipNotInOutfit(int outfit);
- int keyToNumber(SDLKey key) const;
+ int keyToNumber(SDLKey key) const A_PURE;
- SDLKey numberToKey(int number) const;
+ SDLKey numberToKey(int number) const A_PURE;
void next();
@@ -100,7 +106,7 @@ class OutfitWindow : public Window, gcn::ActionListener
void showCurrentOutfit();
- std::string keyName(int number);
+ std::string keyName(int number) A_PURE;
private:
Button *mPreviousButton;