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/tab.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets/tab.cpp') 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; -- cgit v1.2.3-70-g09d2