From ec242a61eac50c8fb41bd21b08827c79240f9ea4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 Dec 2015 18:06:24 +0300 Subject: Add missing const in widget. --- src/gui/widgets/widget.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/widgets/widget.h') diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index 840e7ce31..2cba39d33 100644 --- a/src/gui/widgets/widget.h +++ b/src/gui/widgets/widget.h @@ -857,8 +857,8 @@ class Widget notfinal : public Widget2 * @return The mouse listeners of the widget. * @since 0.6.0 */ - virtual const std::list& getMouseListeners() - A_WARN_UNUSED; + const std::list& getMouseListeners() const + A_WARN_UNUSED; /** * Gets the key listeners of the widget. @@ -866,8 +866,8 @@ class Widget notfinal : public Widget2 * @return The key listeners of the widget. * @since 0.6.0 */ - virtual const std::list& getKeyListeners() - A_WARN_UNUSED; + const std::list& getKeyListeners() const + A_WARN_UNUSED; /** * Gets the focus listeners of the widget. @@ -875,8 +875,8 @@ class Widget notfinal : public Widget2 * @return The focus listeners of the widget. * @since 0.7.0 */ - virtual const std::list& getFocusListeners() - A_WARN_UNUSED; + const std::list& getFocusListeners() const + A_WARN_UNUSED; /** * Gets the area of the widget occupied by the widget's children. -- cgit v1.2.3-60-g2f50