From b9584b9b876709ae97e94929d3904975e8143832 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Apr 2018 04:35:40 +0300 Subject: Fix code style. --- src/gui/widgets/pincode.cpp | 4 ++-- src/gui/widgets/pincode.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/pincode.cpp b/src/gui/widgets/pincode.cpp index 7d3933dea..26b6f29d3 100644 --- a/src/gui/widgets/pincode.cpp +++ b/src/gui/widgets/pincode.cpp @@ -162,7 +162,7 @@ void Pincode::action(const ActionEvent &event) } if (mText.size() >= 4) return; - Widget *const eventSrc = event.getSource(); + const Widget *const eventSrc = event.getSource(); for (int f = 0; f < 10; f ++) { if (mButtons[f] == eventSrc) @@ -176,7 +176,7 @@ void Pincode::action(const ActionEvent &event) } } -void Pincode::shuffle(uint32_t seed) +void Pincode::shuffle(uint32_t seed) const { int tab[10]; const uint32_t multiplier = 0x3498; diff --git a/src/gui/widgets/pincode.h b/src/gui/widgets/pincode.h index d9d542647..41cfbc804 100644 --- a/src/gui/widgets/pincode.h +++ b/src/gui/widgets/pincode.h @@ -48,7 +48,7 @@ class Pincode final : public Container, void action(const ActionEvent &event) override final; - void shuffle(uint32_t seed); + void shuffle(uint32_t seed) const; static Skin *mSkin; -- cgit v1.2.3-60-g2f50