diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-09-07 00:30:31 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-09-07 00:34:23 +0200 |
commit | c1def4ead4c578862ad6fcda35a9ca65be407893 (patch) | |
tree | 5695a6a6d782c0dfd4fa91e952a1d777ab8f067d /libqpdf | |
parent | d12734d76fb599c64a9b7fd6cc5a92dd1a90e0ee (diff) | |
download | qpdf-c1def4ead4c578862ad6fcda35a9ca65be407893.tar.zst |
Implement QPDFObjectHandle equality
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 838d389f..885abf3c 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -236,6 +236,18 @@ LastChar::getLastChar() return this->last_char; } +bool +QPDFObjectHandle::operator==(QPDFObjectHandle const& rhs) const +{ + return this->obj == rhs.obj; +} + +bool +QPDFObjectHandle::operator!=(QPDFObjectHandle const& rhs) const +{ + return this->obj != rhs.obj; +} + qpdf_object_type_e QPDFObjectHandle::getTypeCode() { |