Points: modernize C++: return braced init list
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user