From b05920748f2eb83839c7925f3c83530b733331f1 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 17 Sep 2012 01:03:35 +0200 Subject: add const where applicable --- src/menu/control.hpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/menu/control.hpp') diff --git a/src/menu/control.hpp b/src/menu/control.hpp index b821e79b..a4314579 100644 --- a/src/menu/control.hpp +++ b/src/menu/control.hpp @@ -43,10 +43,14 @@ namespace usdx Control* owner; protected: - std::list slaves; + /** + * All slaves the control owns. All these controls should be deleted + * during decontruction of this control. + */ + std::list slaves; - void add_slave(Control*); - void remove_slave(Control*); + void add_slave(const Control*); + void remove_slave(const Control*); public: Control(Control*); @@ -58,7 +62,11 @@ namespace usdx * withthe new owner. */ void set_owner(Control*); - Control* get_owner(void) const; + + /** + * Returns the current owner of this control. + */ + const Control* get_owner(void) const; }; }; -- cgit v1.2.3