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/widgets/widget.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/widget.h') diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index c5573b404..840e7ce31 100644 --- a/src/gui/widgets/widget.h +++ b/src/gui/widgets/widget.h @@ -682,7 +682,7 @@ class Widget notfinal : public Widget2 * @see setFont, setGlobalFont * @since 0.1.0 */ - Font *getFont() const A_WARN_UNUSED; + Font *getFont() const RETURNS_NONNULL A_WARN_UNUSED; /** * Sets the global font to be used by default for all widgets. @@ -1027,7 +1027,7 @@ class Widget notfinal : public Widget2 void windowResized(); - static Widget *callPostInit(Widget *const widget); + static Widget *callPostInit(Widget *const widget) RETURNS_NONNULL; virtual void postInit() { } -- cgit v1.2.3-60-g2f50