2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00

Remove redundant template toO in JSON

This commit is contained in:
m-holger 2023-01-28 10:42:29 +00:00
parent 98d9ae51fc
commit 1b89e7684e

View File

@ -4,19 +4,11 @@
#include <qpdf/Pl_Base64.hh> #include <qpdf/Pl_Base64.hh>
#include <qpdf/Pl_Concatenate.hh> #include <qpdf/Pl_Concatenate.hh>
#include <qpdf/Pl_String.hh> #include <qpdf/Pl_String.hh>
#include <qpdf/QIntC.hh>
#include <qpdf/QTC.hh> #include <qpdf/QTC.hh>
#include <qpdf/QUtil.hh> #include <qpdf/QUtil.hh>
#include <cstring> #include <cstring>
#include <stdexcept> #include <stdexcept>
template <typename T>
static qpdf_offset_t
toO(T const& i)
{
return QIntC::to_offset(i);
}
JSON::Members::Members(std::shared_ptr<JSON_value> value) : JSON::Members::Members(std::shared_ptr<JSON_value> value) :
value(value), value(value),
start(0), start(0),