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:
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(), ());