diff options
author | Yuri Gorshenin <y@mmaps.me> | 2015-04-03 16:43:13 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:41:36 +0300 |
commit | 90cd2f8c9a70e810b3b93931538ae1693d75bb54 (patch) | |
tree | 1721dbbaf7962449ed2eb94f0c2a75ba4673fc75 /indexer/mwm_set.cpp | |
parent | 7e21339eacb8154fee47c51baa60ee2c716f49e6 (diff) |
Fixed constantness.
Diffstat (limited to 'indexer/mwm_set.cpp')
-rw-r--r-- | indexer/mwm_set.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/mwm_set.cpp b/indexer/mwm_set.cpp index a56f0d5599..baa5cf139d 100644 --- a/indexer/mwm_set.cpp +++ b/indexer/mwm_set.cpp @@ -224,7 +224,7 @@ void MwmSet::DeregisterAll() bool MwmSet::IsLoaded(string const & file) const { - MwmSet * p = const_cast<MwmSet *>(this); + MwmSet * const p = const_cast<MwmSet *>(this); lock_guard<mutex> lock(p->m_lock); MwmId const id = p->GetIdByName(file + DATA_FILE_EXTENSION); @@ -233,7 +233,7 @@ bool MwmSet::IsLoaded(string const & file) const void MwmSet::GetMwmInfo(vector<MwmInfo> & info) const { - MwmSet * p = const_cast<MwmSet *>(this); + MwmSet * const p = const_cast<MwmSet *>(this); lock_guard<mutex> lock(p->m_lock); for (MwmId i = 0; i < m_info.size(); ++i) |