From 3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Feb 2016 21:19:35 +0300 Subject: Add missing const in gui directory. --- src/gui/widgets/tabs/tab.cpp | 4 ++-- src/gui/widgets/tabs/tab.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets/tabs') diff --git a/src/gui/widgets/tabs/tab.cpp b/src/gui/widgets/tabs/tab.cpp index 93d2c72d8..7f5c26c8f 100644 --- a/src/gui/widgets/tabs/tab.cpp +++ b/src/gui/widgets/tabs/tab.cpp @@ -204,7 +204,7 @@ void Tab::updateAlpha() } } -void Tab::draw(Graphics *graphics) +void Tab::draw(Graphics *const graphics) { BLOCK_START("Tab::draw") int mode = TAB_STANDARD; @@ -307,7 +307,7 @@ void Tab::draw(Graphics *graphics) BLOCK_END("Tab::draw") } -void Tab::safeDraw(Graphics *graphics) +void Tab::safeDraw(Graphics *const graphics) { BLOCK_START("Tab::draw") int mode = TAB_STANDARD; diff --git a/src/gui/widgets/tabs/tab.h b/src/gui/widgets/tabs/tab.h index dfa126b90..d32cc176c 100644 --- a/src/gui/widgets/tabs/tab.h +++ b/src/gui/widgets/tabs/tab.h @@ -109,9 +109,9 @@ class Tab notfinal : public BasicContainer, /** * Draw the tabbed area. */ - void draw(Graphics *graphics) override final A_NONNULL(2); + void draw(Graphics *const graphics) override final A_NONNULL(2); - void safeDraw(Graphics *graphics) override final A_NONNULL(2); + void safeDraw(Graphics *const graphics) override final A_NONNULL(2); /** * Set the normal color for the tab's text. -- cgit v1.2.3-70-g09d2