2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-16 01:27:07 +00:00
qpdf/libqpdf/QPDF_Null.cc
m-holger f0a8178091 Refactor QPDFObject creation and cloning
Move responsibility for creating shared pointers to objects and cloning from QPDFObjectHandle to QPDFObject.
2022-06-27 12:47:02 -04:00

38 lines
494 B
C++

#include <qpdf/QPDF_Null.hh>
std::shared_ptr<QPDFObject>
QPDF_Null::create()
{
return do_create(new QPDF_Null());
}
std::shared_ptr<QPDFObject>
QPDF_Null::shallowCopy()
{
return create();
}
std::string
QPDF_Null::unparse()
{
return "null";
}
JSON
QPDF_Null::getJSON(int json_version)
{
return JSON::makeNull();
}
QPDFObject::object_type_e
QPDF_Null::getTypeCode() const
{
return QPDFObject::ot_null;
}
char const*
QPDF_Null::getTypeName() const
{
return "null";
}