summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-22 18:06:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-22 18:06:24 +0300
commitec242a61eac50c8fb41bd21b08827c79240f9ea4 (patch)
tree6c100bff924fffca2022b622faf017455f5c3841 /src/gui/widgets/widget.h
parentf4d4fb031a17c502a28d60a241c4fa6e838519f2 (diff)
downloadmanaplus-ec242a61eac50c8fb41bd21b08827c79240f9ea4.tar.gz
manaplus-ec242a61eac50c8fb41bd21b08827c79240f9ea4.tar.bz2
manaplus-ec242a61eac50c8fb41bd21b08827c79240f9ea4.tar.xz
manaplus-ec242a61eac50c8fb41bd21b08827c79240f9ea4.zip
Add missing const in widget.
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r--src/gui/widgets/widget.h12
1 files changed, 6 insertions, 6 deletions
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<MouseListener*>& getMouseListeners()
- A_WARN_UNUSED;
+ const std::list<MouseListener*>& 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<KeyListener*>& getKeyListeners()
- A_WARN_UNUSED;
+ const std::list<KeyListener*>& 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<FocusListener*>& getFocusListeners()
- A_WARN_UNUSED;
+ const std::list<FocusListener*>& getFocusListeners() const
+ A_WARN_UNUSED;
/**
* Gets the area of the widget occupied by the widget's children.