mirror of
https://github.com/docling-project/docling-parse.git
synced 2026-05-17 13:10:49 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user