diff options
author | Yuri Gorshenin <y@maps.me> | 2016-02-16 16:53:26 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:21:20 +0300 |
commit | 49b7fc3226865d6c56163c4532b2489dd38413bc (patch) | |
tree | e8ea167bd858587f0fa9caa7712c88f6ee8fe50e /indexer/mwm_set.hpp | |
parent | 3431ad9bf342268c2c2c6930d7141d1a163c6272 (diff) |
Review fixes.
Diffstat (limited to 'indexer/mwm_set.hpp')
-rw-r--r-- | indexer/mwm_set.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/indexer/mwm_set.hpp b/indexer/mwm_set.hpp index 32f19cb6cf..f7ab054fa7 100644 --- a/indexer/mwm_set.hpp +++ b/indexer/mwm_set.hpp @@ -234,10 +234,12 @@ public: // used. virtual void OnMapRegistered(platform::LocalCountryFile const & localFile) {} - // Called when a map is updated to a newer version. + // Called when a map is updated to a newer version. Feel free to + // treat it as combined OnMapRegistered(newFile) + + // OnMapRegistered(oldFile). virtual void OnMapUpdated(platform::LocalCountryFile const & newFile, platform::LocalCountryFile const & oldFile) {} - // Called when a map is deregistered and can not be used. + // Called when a map is deregistered and can no longer be used. virtual void OnMapDeregistered(platform::LocalCountryFile const & localFile) {} }; @@ -338,8 +340,8 @@ private: unique_ptr<MwmValueBase> LockValue(MwmId const & id); unique_ptr<MwmValueBase> LockValueImpl(MwmId const & id, EventList & events); - void UnlockValue(MwmId const & id, unique_ptr<MwmValueBase> && p); - void UnlockValueImpl(MwmId const & id, unique_ptr<MwmValueBase> && p, EventList & events); + void UnlockValue(MwmId const & id, unique_ptr<MwmValueBase> p); + void UnlockValueImpl(MwmId const & id, unique_ptr<MwmValueBase> p, EventList & events); /// Do the cleaning for [beg, end) without acquiring the mutex. /// @precondition This function is always called under mutex m_lock. |