App: fix PropertyXLinkList/SubList::getValues()

This commit is contained in:
Zheng, Lei
2020-06-01 16:11:14 +08:00
committed by wwmayer
parent e0199b3a8f
commit 516a005ced
2 changed files with 8 additions and 12 deletions

View File

@@ -4303,6 +4303,13 @@ void PropertyXLinkSubList::aboutToSetChildValue(Property &) {
}
}
std::vector<App::DocumentObject*> PropertyXLinkSubList::getValues(void) const
{
std::vector<DocumentObject*> xLinks;
getLinks(xLinks);
return(xLinks);
}
//**************************************************************************
// PropertyXLinkList
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -4354,14 +4361,6 @@ void PropertyXLinkList::setPyObject(PyObject *value)
PropertyXLinkSubList::setPyObject(value);
}
//for consistency with PropertyLinkList
const std::vector<App::DocumentObject*> PropertyXLinkList::getValues(void) const
{
std::vector<DocumentObject*> xLinks;
getLinks(xLinks);
return(xLinks);
}
//**************************************************************************
// PropertyXLinkContainer
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

View File

@@ -1222,7 +1222,7 @@ public:
*/
void setValue(App::DocumentObject *lValue, const std::vector<std::string> &SubList={});
std::vector<DocumentObject*> getValues(void);
std::vector<DocumentObject*> getValues(void) const;
const std::string getPyReprString() const;
@@ -1309,9 +1309,6 @@ public:
virtual PyObject *getPyObject(void) override;
virtual void setPyObject(PyObject *) override;
//for consistency with PropertyLinkList
const std::vector<App::DocumentObject*> getValues(void) const;
};