diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-22 01:22:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-22 01:22:38 +0300 |
commit | f95e58406341d5672048ed9dca293beea9ee6b2c (patch) | |
tree | 49bb3f3672bbd152f7ea962815d24ef8cdfb07b0 /src/gui | |
parent | f3ac812e2079eac53c1a9db56541d7103bd14a61 (diff) | |
download | plus-f95e58406341d5672048ed9dca293beea9ee6b2c.tar.gz plus-f95e58406341d5672048ed9dca293beea9ee6b2c.tar.bz2 plus-f95e58406341d5672048ed9dca293beea9ee6b2c.tar.xz plus-f95e58406341d5672048ed9dca293beea9ee6b2c.zip |
Add more missing consts.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/viewport.cpp | 2 | ||||
-rw-r--r-- | src/gui/viewport.h | 2 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_colors.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_colors.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index e0d5d217f..341477c0f 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -582,7 +582,7 @@ void Viewport::mousePressed(MouseEvent &event) } } -void Viewport::getMouseTile(int &destX, int &destY) +void Viewport::getMouseTile(int &destX, int &destY) const { getMouseTile(mMouseX, mMouseY, destX, destY); } diff --git a/src/gui/viewport.h b/src/gui/viewport.h index 1a959a858..a03137761 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -169,7 +169,7 @@ class Viewport final : public WindowContainer, void returnCamera(); - void getMouseTile(int &destX, int &destY); + void getMouseTile(int &destX, int &destY) const; int mMouseX; /**< Current mouse position in pixels. */ int mMouseY; /**< Current mouse position in pixels. */ diff --git a/src/gui/widgets/tabs/setup_colors.cpp b/src/gui/widgets/tabs/setup_colors.cpp index 00ab33bcc..8ad0958e1 100644 --- a/src/gui/widgets/tabs/setup_colors.cpp +++ b/src/gui/widgets/tabs/setup_colors.cpp @@ -448,7 +448,7 @@ void Setup_Colors::updateGradType() mBlueSlider->setEnabled(enable); } -void Setup_Colors::updateColor() +void Setup_Colors::updateColor() const { if (mSelected == -1 || !userPalette) return; diff --git a/src/gui/widgets/tabs/setup_colors.h b/src/gui/widgets/tabs/setup_colors.h index 8276b111b..da4fb6c90 100644 --- a/src/gui/widgets/tabs/setup_colors.h +++ b/src/gui/widgets/tabs/setup_colors.h @@ -84,7 +84,7 @@ class Setup_Colors final : public SetupTab, static void setEntry(Slider *const s, TextField *const t, const int value); - void updateColor(); + void updateColor() const; void updateGradType(); }; |