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:
authorIlya Zverev <zverik@textual.ru>2016-03-24 12:07:59 +0300
committerIlya Zverev <zverik@textual.ru>2016-03-24 12:26:36 +0300
commit99fec047b33e0ae7c2ec379e531c1492faef8b09 (patch)
tree371bff9a902260cf03fb5884b2647b87c7b4110e /editor/xml_feature.cpp
parent12c03180d0dff8fa9f14076f390d70dd3531acb3 (diff)
[editor] Review fixes, and a new method HasAnyTags() in XMLFeature
Diffstat (limited to 'editor/xml_feature.cpp')
-rw-r--r--editor/xml_feature.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/xml_feature.cpp b/editor/xml_feature.cpp
index 3b7abad3b6..7117f97de2 100644
--- a/editor/xml_feature.cpp
+++ b/editor/xml_feature.cpp
@@ -314,6 +314,11 @@ void XMLFeature::SetUploadError(string const & error)
SetAttribute(kUploadError, error);
}
+bool XMLFeature::HasAnyTags() const
+{
+ return m_document.child("tag");
+}
+
bool XMLFeature::HasTag(string const & key) const
{
return FindTag(m_document, key);