diff options
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDFObject.cc | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/libqpdf/QPDFObject.cc b/libqpdf/QPDFObject.cc index 679e62d3..39eb01a2 100644 --- a/libqpdf/QPDFObject.cc +++ b/libqpdf/QPDFObject.cc @@ -1,49 +1,40 @@ #include <qpdf/QPDFObject.hh> -QPDFObject::Members::Members() : +QPDFObject::QPDFObject() : owning_qpdf(0), parsed_offset(-1) { } -QPDFObject::Members::~Members() -{ -} - -QPDFObject::QPDFObject() : - m(new Members) -{ -} - void QPDFObject::setDescription(QPDF* qpdf, std::string const& description) { - this->m->owning_qpdf = qpdf; - this->m->object_description = description; + this->owning_qpdf = qpdf; + this->object_description = description; } bool QPDFObject::getDescription(QPDF*& qpdf, std::string& description) { - qpdf = this->m->owning_qpdf; - description = this->m->object_description; - return this->m->owning_qpdf != 0; + qpdf = this->owning_qpdf; + description = this->object_description; + return this->owning_qpdf != 0; } bool QPDFObject::hasDescription() { - return this->m->owning_qpdf != 0; + return this->owning_qpdf != 0; } void QPDFObject::setParsedOffset(qpdf_offset_t offset) { - this->m->parsed_offset = offset; + this->parsed_offset = offset; } qpdf_offset_t QPDFObject::getParsedOffset() { - return this->m->parsed_offset; + return this->parsed_offset; } |