summaryrefslogtreecommitdiff
path: root/src/gui/widgets/popup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-30 22:53:27 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-30 22:53:27 +0300
commit5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (patch)
treed36b4ac344f31f34311c7cb7a9a637ed48356e3e /src/gui/widgets/popup.cpp
parent4210163dae7d6266923ab11f78b631173c9533e3 (diff)
downloadplus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.gz
plus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.bz2
plus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.xz
plus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.zip
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/popup.cpp')
-rw-r--r--src/gui/widgets/popup.cpp16
1 files changed, 8 insertions, 8 deletions
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);
+ Graphics *const g = static_cast<Graphics*>(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;