aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Array.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDF_Array.cc')
-rw-r--r--libqpdf/QPDF_Array.cc16
1 files changed, 3 insertions, 13 deletions
diff --git a/libqpdf/QPDF_Array.cc b/libqpdf/QPDF_Array.cc
index ff35e9a3..63fe98d4 100644
--- a/libqpdf/QPDF_Array.cc
+++ b/libqpdf/QPDF_Array.cc
@@ -4,12 +4,14 @@
#include <qpdf/QUtil.hh>
#include <stdexcept>
-QPDF_Array::QPDF_Array(std::vector<QPDFObjectHandle> const& v)
+QPDF_Array::QPDF_Array(std::vector<QPDFObjectHandle> const& v) :
+ QPDFValue(::ot_array, "array")
{
setFromVector(v);
}
QPDF_Array::QPDF_Array(SparseOHArray const& items) :
+ QPDFValue(::ot_array, "array"),
elements(items)
{
}
@@ -62,18 +64,6 @@ QPDF_Array::getJSON(int json_version)
return j;
}
-qpdf_object_type_e
-QPDF_Array::getTypeCode() const
-{
- return ::ot_array;
-}
-
-char const*
-QPDF_Array::getTypeName() const
-{
- return "array";
-}
-
int
QPDF_Array::getNItems() const
{