Skip to content

Commit

Permalink
+ consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 13, 2016
1 parent 7e01bf1 commit e3b609b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/App/PropertyLinks.cpp
Expand Up @@ -737,7 +737,7 @@ void PropertyLinkSubList::Restore(Base::XMLReader &reader)
std::string name = reader.getAttribute("obj");
// In order to do copy/paste it must be allowed to have defined some
// referenced objects in XML which do not exist anymore in the new
// document. Thus, we should silently ingore this.
// document. Thus, we should silently ignore this.
// Property not in an object!
DocumentObject* father = static_cast<DocumentObject*>(getContainer());
App::Document* document = father->getDocument();
Expand All @@ -757,7 +757,7 @@ void PropertyLinkSubList::Restore(Base::XMLReader &reader)
setValues(values,SubNames);
}

void PropertyLinkSubList::Restore_FromLinkSub(XMLReader &reader)
void PropertyLinkSubList::RestoreFromLinkSub(XMLReader &reader)
{
//Copy-paste from PropertyLinkSub::Restore()
// read my element
Expand Down
2 changes: 1 addition & 1 deletion src/App/PropertyLinks.h
Expand Up @@ -288,7 +288,7 @@ class AppExport PropertyLinkSubList: public PropertyLists

virtual void Save (Base::Writer &writer) const;
virtual void Restore(Base::XMLReader &reader);
virtual void Restore_FromLinkSub(Base::XMLReader &reader);
virtual void RestoreFromLinkSub(Base::XMLReader &reader);

virtual Property *Copy(void) const;
virtual void Paste(const Property &from);
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/Part2DObject.cpp
Expand Up @@ -236,7 +236,7 @@ void Part2DObject::Restore(Base::XMLReader &reader)
//reading legacy Support - when the Support could only be a single flat face.
App::PropertyLinkSub tmp;//getTypeId() is not static =(
if (0 == strcmp(tmp.getTypeId().getName(),TypeName)) {
static_cast<App::PropertyLinkSubList*>(prop)->Restore_FromLinkSub(reader);
static_cast<App::PropertyLinkSubList*>(prop)->RestoreFromLinkSub(reader);
}
this->MapMode.setValue(Attacher::mmFlatFace);
}
Expand Down

0 comments on commit e3b609b

Please sign in to comment.