diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-18 18:56:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-18 19:07:49 +0300 |
commit | e85c6227064c905945a4d49a5e11a0078243a1ac (patch) | |
tree | 01cab11bccef2c2b47f78d1f32884f6e199db2bd /src/being/localplayer.cpp | |
parent | 3c7d4f339c20bc665efa6f6666171f0ca610203b (diff) | |
download | plus-e85c6227064c905945a4d49a5e11a0078243a1ac.tar.gz plus-e85c6227064c905945a4d49a5e11a0078243a1ac.tar.bz2 plus-e85c6227064c905945a4d49a5e11a0078243a1ac.tar.xz plus-e85c6227064c905945a4d49a5e11a0078243a1ac.zip |
add missing const in being classes.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 2179dc318..4d42bc717 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -357,7 +357,8 @@ void LocalPlayer::slowLogic() if (mTestParticleTime != time && !mTestParticleName.empty()) { - unsigned long hash = UpdaterWindow::getFileHash(mTestParticleName); + const unsigned long hash = UpdaterWindow::getFileHash( + mTestParticleName); if (hash != mTestParticleHash) { setTestParticle(mTestParticleName, false); @@ -803,7 +804,7 @@ void LocalPlayer::nextTile(unsigned char dir A_UNUSED = 0) if (Net::getNetworkType() != ServerInfo::MANASERV) #endif { - Party *const party = Party::getParty(1); + const Party *const party = Party::getParty(1); if (party) { PartyMember *const pm = party->getMember(getName()); @@ -1596,7 +1597,7 @@ void LocalPlayer::optionChanged(const std::string &value) mTargetOnlyReachable = config.getBoolValue("targetOnlyReachable"); } -void LocalPlayer::processEvent(Channels channel, +void LocalPlayer::processEvent(const Channels channel, const DepricatedEvent &event) { if (channel == CHANNEL_ATTRIBUTES) @@ -4313,7 +4314,8 @@ void LocalPlayer::updateStatus() const } } -void LocalPlayer::setTestParticle(const std::string &fileName, bool updateHash) +void LocalPlayer::setTestParticle(const std::string &fileName, + const bool updateHash) { mTestParticleName = fileName; mTestParticleTime = cur_time; |