From a4e34462452758e667cf3899fd664884e035e3c9 Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Tue, 12 Dec 2017 12:20:42 +0300 Subject: [search] Translated names in results. --- storage/country_tree.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'storage') 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(), ()); -- cgit v1.2.3