From 5cbd0d2cb7086fda592c00dbc3b07d06af95f080 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Aug 2012 22:53:27 +0300 Subject: Add const to more classes. --- src/gui/widgets/layouthelper.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/layouthelper.h') diff --git a/src/gui/widgets/layouthelper.h b/src/gui/widgets/layouthelper.h index b0f4d435d..c9c5e2471 100644 --- a/src/gui/widgets/layouthelper.h +++ b/src/gui/widgets/layouthelper.h @@ -38,7 +38,7 @@ class LayoutHelper : public gcn::WidgetListener /** * Constructor. */ - LayoutHelper(gcn::Container *container); + LayoutHelper(gcn::Container *const container); /** * Destructor. @@ -65,12 +65,13 @@ class LayoutHelper : public gcn::WidgetListener /** * Adds a widget to the container and sets it at given cell. */ - LayoutCell &place(int x, int y, gcn::Widget *, int w = 1, int h = 1); + LayoutCell &place(const int x, const int y, gcn::Widget *const wg, + const int w = 1, const int h = 1); /** * Returns a proxy for adding widgets in an inner table of the layout. */ - ContainerPlacer getPlacer(int x, int y); + ContainerPlacer getPlacer(const int x, const int y); /** * Called whenever the managed container changes size. -- cgit v1.2.3-60-g2f50