summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tab.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/tab.cpp
parent4210163dae7d6266923ab11f78b631173c9533e3 (diff)
downloadManaVerse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.gz
ManaVerse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.bz2
ManaVerse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.xz
ManaVerse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.zip
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/tab.cpp')
-rw-r--r--src/gui/widgets/tab.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp
index a9f3763b5..bf37a643e 100644
--- a/src/gui/widgets/tab.cpp
+++ b/src/gui/widgets/tab.cpp
@@ -78,7 +78,7 @@ Tab::~Tab()
mInstances--;
if (mInstances == 0 && Theme::instance())
{
- Theme *theme = Theme::instance();
+ Theme *const theme = Theme::instance();
for (int mode = 0; mode < TAB_COUNT; mode ++)
theme->unloadRect(tabImg[mode]);
}
@@ -112,7 +112,7 @@ void Tab::init()
void Tab::updateAlpha()
{
- float alpha = std::max(Client::getGuiAlpha(),
+ const float alpha = std::max(Client::getGuiAlpha(),
Theme::instance()->getMinimumOpacity());
// TODO We don't need to do this for every tab on every draw
@@ -184,12 +184,12 @@ void Tab::draw(gcn::Graphics *graphics)
drawChildren(graphics);
}
-void Tab::setTabColor(const gcn::Color *color)
+void Tab::setTabColor(const gcn::Color *const color)
{
mTabColor = color;
}
-void Tab::setFlash(int flash)
+void Tab::setFlash(const int flash)
{
mFlash = flash;
}
@@ -204,7 +204,7 @@ void Tab::widgetMoved(const gcn::Event &event A_UNUSED)
mRedraw = true;
}
-void Tab::setLabelFont(gcn::Font *font)
+void Tab::setLabelFont(gcn::Font *const font)
{
if (!mLabel)
return;