remove redundant void
This commit is contained in:
@@ -88,12 +88,12 @@ void PropertyVector::setValue(double x, double y, double z)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
const Base::Vector3d & PropertyVector::getValue(void)const
|
||||
const Base::Vector3d & PropertyVector::getValue()const
|
||||
{
|
||||
return _cVec;
|
||||
}
|
||||
|
||||
PyObject *PropertyVector::getPyObject(void)
|
||||
PyObject *PropertyVector::getPyObject()
|
||||
{
|
||||
return new Base::VectorPy(_cVec);
|
||||
}
|
||||
@@ -159,7 +159,7 @@ void PropertyVector::Restore(Base::XMLReader &reader)
|
||||
}
|
||||
|
||||
|
||||
Property *PropertyVector::Copy(void) const
|
||||
Property *PropertyVector::Copy() const
|
||||
{
|
||||
PropertyVector *p= new PropertyVector();
|
||||
p->_cVec = _cVec;
|
||||
@@ -302,7 +302,7 @@ void PropertyVectorList::setValue(double x, double y, double z)
|
||||
setValue(Base::Vector3d(x,y,z));
|
||||
}
|
||||
|
||||
PyObject *PropertyVectorList::getPyObject(void)
|
||||
PyObject *PropertyVectorList::getPyObject()
|
||||
{
|
||||
PyObject* list = PyList_New( getSize() );
|
||||
|
||||
@@ -377,7 +377,7 @@ void PropertyVectorList::RestoreDocFile(Base::Reader &reader)
|
||||
setValues(values);
|
||||
}
|
||||
|
||||
Property *PropertyVectorList::Copy(void) const
|
||||
Property *PropertyVectorList::Copy() const
|
||||
{
|
||||
PropertyVectorList *p= new PropertyVectorList();
|
||||
p->_lValueList = _lValueList;
|
||||
@@ -389,7 +389,7 @@ void PropertyVectorList::Paste(const Property &from)
|
||||
setValues(dynamic_cast<const PropertyVectorList&>(from)._lValueList);
|
||||
}
|
||||
|
||||
unsigned int PropertyVectorList::getMemSize (void) const
|
||||
unsigned int PropertyVectorList::getMemSize () const
|
||||
{
|
||||
return static_cast<unsigned int>(_lValueList.size() * sizeof(Base::Vector3d));
|
||||
}
|
||||
@@ -428,12 +428,12 @@ void PropertyMatrix::setValue(const Base::Matrix4D &mat)
|
||||
}
|
||||
|
||||
|
||||
const Base::Matrix4D & PropertyMatrix::getValue(void)const
|
||||
const Base::Matrix4D & PropertyMatrix::getValue()const
|
||||
{
|
||||
return _cMat;
|
||||
}
|
||||
|
||||
PyObject *PropertyMatrix::getPyObject(void)
|
||||
PyObject *PropertyMatrix::getPyObject()
|
||||
{
|
||||
return new Base::MatrixPy(_cMat);
|
||||
}
|
||||
@@ -508,7 +508,7 @@ void PropertyMatrix::Restore(Base::XMLReader &reader)
|
||||
}
|
||||
|
||||
|
||||
Property *PropertyMatrix::Copy(void) const
|
||||
Property *PropertyMatrix::Copy() const
|
||||
{
|
||||
PropertyMatrix *p= new PropertyMatrix();
|
||||
p->_cMat = _cMat;
|
||||
@@ -567,7 +567,7 @@ bool PropertyPlacement::setValueIfChanged(const Base::Placement &pos,double tol,
|
||||
}
|
||||
|
||||
|
||||
const Base::Placement & PropertyPlacement::getValue(void)const
|
||||
const Base::Placement & PropertyPlacement::getValue()const
|
||||
{
|
||||
return _cPos;
|
||||
}
|
||||
@@ -664,7 +664,7 @@ bool PropertyPlacement::getPyPathValue(const ObjectIdentifier &path, Py::Object
|
||||
return true;
|
||||
}
|
||||
|
||||
PyObject *PropertyPlacement::getPyObject(void)
|
||||
PyObject *PropertyPlacement::getPyObject()
|
||||
{
|
||||
return new Base::PlacementPy(new Base::Placement(_cPos));
|
||||
}
|
||||
@@ -739,7 +739,7 @@ void PropertyPlacement::Restore(Base::XMLReader &reader)
|
||||
}
|
||||
|
||||
|
||||
Property *PropertyPlacement::Copy(void) const
|
||||
Property *PropertyPlacement::Copy() const
|
||||
{
|
||||
PropertyPlacement *p= new PropertyPlacement();
|
||||
p->_cPos = _cPos;
|
||||
@@ -776,7 +776,7 @@ PropertyPlacementList::~PropertyPlacementList()
|
||||
//**************************************************************************
|
||||
// Base class implementer
|
||||
|
||||
PyObject *PropertyPlacementList::getPyObject(void)
|
||||
PyObject *PropertyPlacementList::getPyObject()
|
||||
{
|
||||
PyObject* list = PyList_New( getSize() );
|
||||
|
||||
@@ -864,7 +864,7 @@ void PropertyPlacementList::RestoreDocFile(Base::Reader &reader)
|
||||
setValues(values);
|
||||
}
|
||||
|
||||
Property *PropertyPlacementList::Copy(void) const
|
||||
Property *PropertyPlacementList::Copy() const
|
||||
{
|
||||
PropertyPlacementList *p= new PropertyPlacementList();
|
||||
p->_lValueList = _lValueList;
|
||||
@@ -876,7 +876,7 @@ void PropertyPlacementList::Paste(const Property &from)
|
||||
setValues(dynamic_cast<const PropertyPlacementList&>(from)._lValueList);
|
||||
}
|
||||
|
||||
unsigned int PropertyPlacementList::getMemSize (void) const
|
||||
unsigned int PropertyPlacementList::getMemSize () const
|
||||
{
|
||||
return static_cast<unsigned int>(_lValueList.size() * sizeof(Base::Vector3d));
|
||||
}
|
||||
@@ -906,7 +906,7 @@ PropertyPlacementLink::~PropertyPlacementLink()
|
||||
|
||||
}
|
||||
|
||||
App::Placement * PropertyPlacementLink::getPlacementObject(void) const
|
||||
App::Placement * PropertyPlacementLink::getPlacementObject() const
|
||||
{
|
||||
if (_pcLink->getTypeId().isDerivedFrom(App::Placement::getClassTypeId()))
|
||||
return dynamic_cast<App::Placement*>(_pcLink);
|
||||
@@ -918,7 +918,7 @@ App::Placement * PropertyPlacementLink::getPlacementObject(void) const
|
||||
//**************************************************************************
|
||||
// Base class implementer
|
||||
|
||||
Property *PropertyPlacementLink::Copy(void) const
|
||||
Property *PropertyPlacementLink::Copy() const
|
||||
{
|
||||
PropertyPlacementLink *p= new PropertyPlacementLink();
|
||||
p->_pcLink = _pcLink;
|
||||
|
||||
Reference in New Issue
Block a user