App: fix PropertyXLinkList/SubList::getValues()
This commit is contained in:
@@ -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
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user