[editor] Change xml root to comaps

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-05-19 20:55:08 +07:00
committed by Konstantin Pastbin
parent 54ab965822
commit 2b7246d463
5 changed files with 10 additions and 13 deletions

View File

@@ -38,7 +38,7 @@ using std::make_shared, std::string;
namespace
{
constexpr char const * kXmlRootNode = "omaps";
constexpr char const * kXmlRootNode = "comaps";
constexpr char const * kXmlMwmNode = "mwm";
constexpr char const * kDeleteSection = "delete";
constexpr char const * kModifySection = "modify";
@@ -168,9 +168,6 @@ void Editor::LoadEdits()
auto loadedFeatures = make_shared<FeaturesContainer>();
auto rootNode = doc.child(kXmlRootNode);
// Migrate clients with an old root node.
if (!rootNode)
rootNode = doc.child("mapsme");
// TODO: Empty rootNode is an OK case for the current logic and unit tests. Check if there is a better way to do it.
for (auto const & mwm : rootNode.children(kXmlMwmNode))
{