From 3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Feb 2016 21:19:35 +0300 Subject: Add missing const in gui directory. --- src/gui/widgets/widget.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/widget.h') diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index e69e1c061..b94f81251 100644 --- a/src/gui/widgets/widget.h +++ b/src/gui/widgets/widget.h @@ -121,9 +121,9 @@ class Widget notfinal : public Widget2 * @param graphics aA graphics object to draw with. * @since 0.1.0 */ - virtual void draw(Graphics* graphics) A_NONNULL(2) = 0; + virtual void draw(Graphics *const graphics) A_NONNULL(2) = 0; - virtual void safeDraw(Graphics* graphics) A_NONNULL(2) = 0; + virtual void safeDraw(Graphics *const graphics) A_NONNULL(2) = 0; /** * Called when a widget is given a chance to draw a frame around itself. @@ -721,7 +721,7 @@ class Widget notfinal : public Widget2 * @return True if an instance of the widget exists, false otherwise. * @since 0.1.0 */ - static bool widgetExists(const Widget* widget) A_WARN_UNUSED; + static bool widgetExists(const Widget *const widget) A_WARN_UNUSED; /** * Checks if tab in is enabled. Tab in means that you can set focus -- cgit v1.2.3-60-g2f50