use the std::make_pair to be compliant with c++-17

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
Peter Staar
2024-10-18 10:57:00 +02:00
parent 0913b6c2a6
commit 73a11e37d2
+7 -4
View File
@@ -84,12 +84,15 @@ namespace pdflib
if(x.size()==0 or y.size()==0)
{
LOG_S(ERROR) << "could not get front from the path: it is empty!";
std::pair<double, double> result(-1,-1);
return result;
//std::pair<double, double> result(-1,-1);
//return result;
return std::make_pair(-1.0, -1.0);
}
std::pair<double, double> result(x.front(), y.front());
return result;
return std::make_pair(x.front(), y.front());
//std::pair<double, double> result(x.front(), y.front());
//return result;
//assert(x.size()>0);
//return std::pair<double, double>(x.front(), y.front());