summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-02 04:35:40 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-02 04:35:40 +0300
commitb9584b9b876709ae97e94929d3904975e8143832 (patch)
tree8b18e38e1000b59258e338189c6e6be2e384d06f /src
parent5400a3120742494281f6cce43545657432a08f25 (diff)
downloadmv-b9584b9b876709ae97e94929d3904975e8143832.tar.gz
mv-b9584b9b876709ae97e94929d3904975e8143832.tar.bz2
mv-b9584b9b876709ae97e94929d3904975e8143832.tar.xz
mv-b9584b9b876709ae97e94929d3904975e8143832.zip
Fix code style.
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/pincode.cpp4
-rw-r--r--src/gui/widgets/pincode.h2
-rw-r--r--src/resources/map/map.h1
3 files changed, 3 insertions, 4 deletions
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;
diff --git a/src/resources/map/map.h b/src/resources/map/map.h
index bcfd9e12e..5827d8a94 100644
--- a/src/resources/map/map.h
+++ b/src/resources/map/map.h
@@ -50,7 +50,6 @@ class MapHeights;
class MapItem;
class MapLayer;
class ObjectsLayer;
-class Resource;
class SpecialLayer;
class Tileset;
class TileAnimation;