summaryrefslogtreecommitdiff
path: root/src/gui/widgets/emoteshortcutcontainer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-27 23:22:46 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-27 23:22:46 +0300
commitcff45e3874cb71ed89f97d04f04bcb5da93ab010 (patch)
tree15d38ae257f8a54b3ed86011f6abdf6690142097 /src/gui/widgets/emoteshortcutcontainer.h
parent07c8e54506f12d15044e0ded3e0da8b2114aeed7 (diff)
downloadmanaplus-cff45e3874cb71ed89f97d04f04bcb5da93ab010.tar.gz
manaplus-cff45e3874cb71ed89f97d04f04bcb5da93ab010.tar.bz2
manaplus-cff45e3874cb71ed89f97d04f04bcb5da93ab010.tar.xz
manaplus-cff45e3874cb71ed89f97d04f04bcb5da93ab010.zip
Add restrict keyword in emotheshortcutcontainer.
Diffstat (limited to 'src/gui/widgets/emoteshortcutcontainer.h')
-rw-r--r--src/gui/widgets/emoteshortcutcontainer.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/gui/widgets/emoteshortcutcontainer.h b/src/gui/widgets/emoteshortcutcontainer.h
index a4e52b2bf..2dcb72f4b 100644
--- a/src/gui/widgets/emoteshortcutcontainer.h
+++ b/src/gui/widgets/emoteshortcutcontainer.h
@@ -37,7 +37,7 @@ class EmoteShortcutContainer final : public ShortcutContainer
/**
* Constructor. Initializes the graphic.
*/
- explicit EmoteShortcutContainer(Widget2 *const widget);
+ explicit EmoteShortcutContainer(Widget2 *restrict const widget);
A_DELETE_COPY(EmoteShortcutContainer)
@@ -49,32 +49,38 @@ class EmoteShortcutContainer final : public ShortcutContainer
/**
* Draws the items.
*/
- void draw(Graphics *graphics) override final A_NONNULL(2);
+ void draw(Graphics *restrict graphics)
+ restrict2 override final A_NONNULL(2);
- void safeDraw(Graphics *graphics) override final A_NONNULL(2);
+ void safeDraw(Graphics *restrict graphics)
+ restrict2 override final A_NONNULL(2);
/**
* Handles mouse when dragged.
*/
- void mouseDragged(MouseEvent &event) override final A_CONST;
+ void mouseDragged(MouseEvent &restrict event)
+ restrict2 override final A_CONST;
/**
* Handles mouse when pressed.
*/
- void mousePressed(MouseEvent &event) override final;
+ void mousePressed(MouseEvent &restrict event) restrict2 override final;
/**
* Handles mouse release.
*/
- void mouseReleased(MouseEvent &event) override final;
+ void mouseReleased(MouseEvent &restrict event)
+ restrict2 override final;
- void mouseMoved(MouseEvent &event) override final;
+ void mouseMoved(MouseEvent &restrict event) restrict2 override final;
- void mouseExited(MouseEvent &event) override final;
+ void mouseExited(MouseEvent &restrict event) restrict2 override final;
- void widgetHidden(const Event &event) override final;
+ void widgetHidden(const Event &restrict event)
+ restrict2 override final;
- void setWidget2(const Widget2 *const widget) override final;
+ void setWidget2(const Widget2 *restrict const widget)
+ restrict2 override final;
private:
std::vector<const EmoteSprite*> mEmoteImg;