diff options
author | Yuri Gorshenin <y@maps.me> | 2017-12-12 12:20:42 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2017-12-28 14:21:36 +0300 |
commit | a4e34462452758e667cf3899fd664884e035e3c9 (patch) | |
tree | 6c136fb3ac7fa8c2cf7d91aac07f02726363ad26 /storage | |
parent | 4e50a45aadfa0e89bd0e65f6d9342d1e2abc389f (diff) |
[search] Translated names in results.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/country_tree.hpp | 2 |
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(), ()); |