aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Operator.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-09-01 19:14:56 +0200
committerGitHub <noreply@github.com>2022-09-01 19:14:56 +0200
commitf8fd7d60e301b9b1bf4d705ce747e281c320487e (patch)
tree4aba6da08ae9d441ecf57eabefdc76185137d28d /libqpdf/QPDF_Operator.cc
parenta078202c1b5823f1c13a4c559619158054029e73 (diff)
parent805c1ad47968e33e1296af9a31492f6916ad9113 (diff)
downloadqpdf-f8fd7d60e301b9b1bf4d705ce747e281c320487e.tar.zst
Merge pull request #726 from m-holger/tidy3
Split QPDFObject into QPDFObject and QPDFValue
Diffstat (limited to 'libqpdf/QPDF_Operator.cc')
-rw-r--r--libqpdf/QPDF_Operator.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/libqpdf/QPDF_Operator.cc b/libqpdf/QPDF_Operator.cc
index cd5009ae..547ff40a 100644
--- a/libqpdf/QPDF_Operator.cc
+++ b/libqpdf/QPDF_Operator.cc
@@ -1,6 +1,7 @@
#include <qpdf/QPDF_Operator.hh>
QPDF_Operator::QPDF_Operator(std::string const& val) :
+ QPDFValue(::ot_operator, "operator"),
val(val)
{
}
@@ -20,7 +21,7 @@ QPDF_Operator::shallowCopy()
std::string
QPDF_Operator::unparse()
{
- return this->val;
+ return val;
}
JSON
@@ -29,18 +30,6 @@ QPDF_Operator::getJSON(int json_version)
return JSON::makeNull();
}
-QPDFObject::object_type_e
-QPDF_Operator::getTypeCode() const
-{
- return QPDFObject::ot_operator;
-}
-
-char const*
-QPDF_Operator::getTypeName() const
-{
- return "operator";
-}
-
std::string
QPDF_Operator::getVal() const
{