summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-22 19:35:22 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-22 19:35:22 +0300
commit34bd6e0b8e0fb74cc416550a52e6406c47fefea6 (patch)
treef2e36f2ae2b721de22be4e1b18cf1dd09ba03741 /src/gui/widgets
parent1ee6d71c1d771ab8a990ef427a59f54132910ac7 (diff)
downloadmv-34bd6e0b8e0fb74cc416550a52e6406c47fefea6.tar.gz
mv-34bd6e0b8e0fb74cc416550a52e6406c47fefea6.tar.bz2
mv-34bd6e0b8e0fb74cc416550a52e6406c47fefea6.tar.xz
mv-34bd6e0b8e0fb74cc416550a52e6406c47fefea6.zip
Add some missing consts.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/scrollarea.cpp2
-rw-r--r--src/gui/widgets/scrollarea.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index 065a72df8..bd386f820 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -401,7 +401,7 @@ void ScrollArea::safeDraw(Graphics *const graphics)
BLOCK_END("ScrollArea::draw")
}
-void ScrollArea::updateCalcFlag(Graphics *const graphics)
+void ScrollArea::updateCalcFlag(const Graphics *const graphics)
{
if (!mRedraw)
{
diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h
index b33a5a392..3432c34d8 100644
--- a/src/gui/widgets/scrollarea.h
+++ b/src/gui/widgets/scrollarea.h
@@ -466,7 +466,7 @@ class ScrollArea final : public BasicContainer,
Image *getImageByState(Rect &dim, const BUTTON_DIR dir);
- void updateCalcFlag(Graphics *const graphics) A_NONNULL(2);
+ void updateCalcFlag(const Graphics *const graphics) A_NONNULL(2);
static int instances;
static float mAlpha;