convert enum to enum class to fix -Wgnu-redeclared-enum

This commit is contained in:
wmayer
2019-11-13 22:39:27 +01:00
parent aa472d8460
commit f14371bc06
8 changed files with 68 additions and 59 deletions

View File

@@ -1239,7 +1239,7 @@ void Document::RestoreDocFile(Base::Reader &reader)
pObj->Restore(*localreader);
if (pObj && expanded) {
Gui::ViewProviderDocumentObject* vp = static_cast<Gui::ViewProviderDocumentObject*>(pObj);
this->signalExpandObject(*vp, Gui::ExpandItem,0,0);
this->signalExpandObject(*vp, TreeItemMode::ExpandItem,0,0);
}
localreader->readEndElement("ViewProvider");
}
@@ -1475,7 +1475,7 @@ void Document::importObjects(const std::vector<App::DocumentObject*>& obj, Base:
if(vpd) vpd->startRestoring();
pObj->Restore(*localreader);
if (expanded && vpd)
this->signalExpandObject(*vpd, Gui::ExpandItem,0,0);
this->signalExpandObject(*vpd, TreeItemMode::ExpandItem,0,0);
}
localreader->readEndElement("ViewProvider");
if (it == obj.end())