diff --git a/src/Mod/Path/libarea/PythonStuff.cpp b/src/Mod/Path/libarea/PythonStuff.cpp index d82715b1e8..7ae208ce03 100644 --- a/src/Mod/Path/libarea/PythonStuff.cpp +++ b/src/Mod/Path/libarea/PythonStuff.cpp @@ -243,7 +243,7 @@ boost::python::list spanIntersect(const Span& span1, const Span& span2) { } //Matrix(boost::python::list &l){} -boost::shared_ptr matrix_constructor(const boost::python::list& lst) { +std::shared_ptr matrix_constructor(const boost::python::list& lst) { double m[16] = {1,0,0,0,0,1,0,0, 0,0,1,0, 0,0,0,1}; boost::python::ssize_t n = boost::python::len(lst); @@ -255,7 +255,7 @@ boost::shared_ptr matrix_constructor(const boost::python if(j>=16)break; } - return boost::shared_ptr( new geoff_geometry::Matrix(m) ); + return std::shared_ptr( new geoff_geometry::Matrix(m) ); } boost::python::list InsideCurves(const CArea& a, const CCurve& curve) { @@ -486,7 +486,7 @@ BOOST_PYTHON_MODULE(area) { .def("GetArea",&AreaGetArea) ; - bp::class_ > ("Matrix") + bp::class_ > ("Matrix") .def(bp::init()) .def("__init__", bp::make_constructor(&matrix_constructor)) .def("TransformedPoint", &transformed_point)