Points: modernize C++: return braced init list

This commit is contained in:
wmayer
2023-08-19 11:29:11 +02:00
parent 0d854a56cd
commit db3a429100
2 changed files with 3 additions and 3 deletions

View File

@@ -182,9 +182,9 @@ public:
/** @name Iterator */
//@{
const_point_iterator begin() const
{ return const_point_iterator(this, _Points.begin()); }
{ return {this, _Points.begin()}; }
const_point_iterator end() const
{ return const_point_iterator(this, _Points.end()); }
{ return {this, _Points.end()}; }
const_reverse_iterator rbegin() const
{ return const_reverse_iterator(end()); }
const_reverse_iterator rend() const

View File

@@ -41,7 +41,7 @@ using namespace Points;
// returns a string which represents the object e.g. when printed in python
std::string PointsPy::representation() const
{
return std::string("<PointKernel object>");
return {"<PointKernel object>"};
}
PyObject *PointsPy::PyMake(struct _typeobject *, PyObject *, PyObject *) // Python wrapper