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>2017-12-12 12:20:42 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2017-12-28 14:21:36 +0300
commita4e34462452758e667cf3899fd664884e035e3c9 (patch)
tree6c136fb3ac7fa8c2cf7d91aac07f02726363ad26 /storage
parent4e50a45aadfa0e89bd0e65f6d9342d1e2abc389f (diff)
[search] Translated names in results.
Diffstat (limited to 'storage')
-rw-r--r--storage/country_tree.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/country_tree.hpp b/storage/country_tree.hpp
index b3faa71191..dc72e6b84c 100644
--- a/storage/country_tree.hpp
+++ b/storage/country_tree.hpp
@@ -68,6 +68,8 @@ public:
bool HasParent() const { return m_parent != nullptr; }
+ bool IsRoot() const { return !HasParent(); }
+
Node const & Parent() const
{
CHECK(HasParent(), ());