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