All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
ef997f2259
commit
9fe130cd73
@@ -26,28 +26,30 @@
|
||||
#include "PartPyCXX.h"
|
||||
|
||||
|
||||
namespace Part {
|
||||
PartExport Py::Object shape2pyshape(const TopoShape &shape)
|
||||
namespace Part
|
||||
{
|
||||
PyObject* ret = const_cast<TopoShape &>(shape).getPyObject();
|
||||
PartExport Py::Object shape2pyshape(const TopoShape& shape)
|
||||
{
|
||||
PyObject* ret = const_cast<TopoShape&>(shape).getPyObject();
|
||||
return Py::asObject(ret);
|
||||
}
|
||||
|
||||
PartExport Py::Object shape2pyshape(const TopoDS_Shape &shape) {
|
||||
PartExport Py::Object shape2pyshape(const TopoDS_Shape& shape)
|
||||
{
|
||||
return shape2pyshape(TopoShape(shape));
|
||||
}
|
||||
|
||||
} //namespace Part
|
||||
} // namespace Part
|
||||
|
||||
|
||||
namespace Py {
|
||||
template<>
|
||||
bool TopoShape::accepts (PyObject *pyob) const
|
||||
{
|
||||
return (pyob && PyObject_TypeCheck(pyob, &(Part::TopoShapePy::Type)));
|
||||
}
|
||||
|
||||
// explicit template instantiation
|
||||
template class PartExport ExtensionObject<Part::TopoShapePy>;
|
||||
namespace Py
|
||||
{
|
||||
template<>
|
||||
bool TopoShape::accepts(PyObject* pyob) const
|
||||
{
|
||||
return (pyob && PyObject_TypeCheck(pyob, &(Part::TopoShapePy::Type)));
|
||||
}
|
||||
|
||||
// explicit template instantiation
|
||||
template class PartExport ExtensionObject<Part::TopoShapePy>;
|
||||
} // namespace Py
|
||||
|
||||
Reference in New Issue
Block a user