diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-11 00:12:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-11 00:12:09 +0300 |
commit | 4fbb944f132eb886a6f5b350e5a14a4fe380aacf (patch) | |
tree | 6df2ed96430610ee7c35a7ca4902bbdade0e8e34 /src/gui/gui.h | |
parent | 1dc012a3bb44218778568e8f80c4e9b445802195 (diff) | |
download | manaverse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.gz manaverse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.bz2 manaverse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.xz manaverse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.zip |
Add missing checks into gui.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index 209c40749..ea9dae7ef 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -156,32 +156,32 @@ class Gui final /** * Return game font. */ - Font *getFont() const A_WARN_UNUSED + Font *getFont() const RETURNS_NONNULL A_WARN_UNUSED { return mGuiFont; } /** * Return help font. */ - Font *getHelpFont() const A_WARN_UNUSED + Font *getHelpFont() const RETURNS_NONNULL A_WARN_UNUSED { return mHelpFont; } /** * Return secure font. */ - Font *getSecureFont() const A_WARN_UNUSED + Font *getSecureFont() const RETURNS_NONNULL A_WARN_UNUSED { return mSecureFont; } /** * Return npc font. */ - Font *getNpcFont() const A_WARN_UNUSED + Font *getNpcFont() const RETURNS_NONNULL A_WARN_UNUSED { return mNpcFont; } /** * Return the Font used for "Info Particles", i.e. ones showing, what * you picked up, etc. */ - Font *getInfoParticleFont() const A_WARN_UNUSED + Font *getInfoParticleFont() const RETURNS_NONNULL A_WARN_UNUSED { return mInfoParticleFont; } /** @@ -257,7 +257,7 @@ class Gui final * OpenLayerGraphics, OpenGLGraphics, SDLGraphics * @since 0.1.0 */ - void setGraphics(Graphics *const graphics); + void setGraphics(Graphics *const graphics) A_NONNULL(2); /** * Gets the graphics object used for drawing. @@ -268,7 +268,7 @@ class Gui final * OpenLayerGraphics, OpenGLGraphics, SDLGraphics * @since 0.1.0 */ - Graphics* getGraphics() const A_WARN_UNUSED; + Graphics* getGraphics() const RETURNS_NONNULL A_WARN_UNUSED; /** * Sets the input object to use for input handling. |