From 4fbb944f132eb886a6f5b350e5a14a4fe380aacf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 Jul 2015 00:12:09 +0300 Subject: Add missing checks into gui. --- src/gui/gui.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gui/gui.h') 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. -- cgit v1.2.3-60-g2f50