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/popup.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gui/widgets/popup.cpp') diff --git a/src/gui/widgets/popup.cpp b/src/gui/widgets/popup.cpp index e02c973dd..2a4065ac2 100644 --- a/src/gui/widgets/popup.cpp +++ b/src/gui/widgets/popup.cpp @@ -91,14 +91,14 @@ Popup::~Popup() } } -void Popup::setWindowContainer(WindowContainer *wc) +void Popup::setWindowContainer(WindowContainer *const wc) { windowContainer = wc; } void Popup::draw(gcn::Graphics *graphics) { - Graphics *g = static_cast(graphics); + Graphics *const g = static_cast(graphics); if (mRedraw) { @@ -138,7 +138,7 @@ void Popup::setContentSize(int width, int height) mRedraw = true; } -void Popup::setLocationRelativeTo(gcn::Widget *widget) +void Popup::setLocationRelativeTo(gcn::Widget *const widget) { if (!widget) return; @@ -154,7 +154,7 @@ void Popup::setLocationRelativeTo(gcn::Widget *widget) mRedraw = true; } -void Popup::setMinWidth(int width) +void Popup::setMinWidth(const int width) { if (mSkin) { @@ -167,7 +167,7 @@ void Popup::setMinWidth(int width) } } -void Popup::setMinHeight(int height) +void Popup::setMinHeight(const int height) { if (mSkin) { @@ -180,12 +180,12 @@ void Popup::setMinHeight(int height) } } -void Popup::setMaxWidth(int width) +void Popup::setMaxWidth(const int width) { mMaxWidth = width; } -void Popup::setMaxHeight(int height) +void Popup::setMaxHeight(const int height) { mMaxHeight = height; } @@ -195,7 +195,7 @@ void Popup::scheduleDelete() windowContainer->scheduleDelete(this); } -void Popup::position(int x, int y) +void Popup::position(const int x, const int y) { const int distance = 20; -- cgit v1.2.3-70-g09d2