mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
[editor] Change xml root to comaps
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
54ab965822
commit
2b7246d463
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user