Core: Revert superfluous changes made with PR #9521

This commit is contained in:
wmayer
2023-10-08 03:01:40 +02:00
committed by wwmayer
parent 22aa20c9e0
commit d305f306df
84 changed files with 265 additions and 1884 deletions

View File

@@ -26,7 +26,6 @@
#include <Base/Reader.h>
#include <Base/Tools.h>
#include <Base/Writer.h>
#include <Base/DocumentReader.h>
#include "DynamicProperty.h"
#include "Application.h"
@@ -323,35 +322,6 @@ Property *DynamicProperty::restore(PropertyContainer &pc,
return addDynamicProperty(pc,TypeName, PropName, group, doc, attribute, readonly, hidden);
}
Property *DynamicProperty::restore(PropertyContainer &pc,
const char *PropName, const char *TypeName, Base::DocumentReader &reader, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *PropertyDOM)
{
const char* group_cstr = reader.GetAttribute(PropertyDOM,"group");
if(!group_cstr)
return nullptr;
short attribute = 0;
bool readonly = false, hidden = false;
const char* doc_cstr = reader.GetAttribute(PropertyDOM,"doc");
const char* attr_cstr = reader.GetAttribute(PropertyDOM,"attr");
if(attr_cstr){
std::istringstream str(attr_cstr);
str >> attribute;
}
const char* ro_cstr = reader.GetAttribute(PropertyDOM,"ro");
if(ro_cstr)
readonly = (ro_cstr[0]-48) != 0;
const char* hide_cstr = reader.GetAttribute(PropertyDOM,"hide");
if(hide_cstr)
hidden = (hide_cstr[0]-48) != 0;
return addDynamicProperty(pc,TypeName, PropName, group_cstr, doc_cstr, attribute, readonly, hidden);
}
DynamicProperty::PropData DynamicProperty::getDynamicPropertyData(const Property *prop) const
{
auto &index = props.get<1>();