Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2015-09-18 11:00:45 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:02:17 +0300
commit1b5c33412cf6efdd1076270f6b90f66ede6fa199 (patch)
tree038f77208bf625cc4513dd5835e86f9804b7cf21 /indexer/mwm_set.hpp
parent1483c3d4db477a9020de96ade0862d6454647b44 (diff)
[search] Fixed infrastructure for a new search.
Diffstat (limited to 'indexer/mwm_set.hpp')
-rw-r--r--indexer/mwm_set.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indexer/mwm_set.hpp b/indexer/mwm_set.hpp
index 9c5c4770b1..a0b3e63057 100644
--- a/indexer/mwm_set.hpp
+++ b/indexer/mwm_set.hpp
@@ -86,6 +86,7 @@ public:
MwmId() = default;
MwmId(shared_ptr<MwmInfo> const & info) : m_info(info) {}
+ MwmId(MwmId const & mwmId): m_info(mwmId.m_info) {}
void Reset() { m_info.reset(); }
bool IsAlive() const
@@ -97,6 +98,11 @@ public:
inline bool operator==(MwmId const & rhs) const { return GetInfo() == rhs.GetInfo(); }
inline bool operator!=(MwmId const & rhs) const { return !(*this == rhs); }
inline bool operator<(MwmId const & rhs) const { return GetInfo() < rhs.GetInfo(); }
+ inline MwmId & operator=(MwmId const & rhs)
+ {
+ m_info = rhs.m_info;
+ return *this;
+ }
friend string DebugPrint(MwmId const & id);