From 21b8625f9595154c661ad9f6d2168cc89b291686 Mon Sep 17 00:00:00 2001 From: m-holger Date: Sat, 23 Jul 2022 12:58:37 +0100 Subject: [PATCH] Add QPDFObjGen operator != --- include/qpdf/QPDFObjGen.hh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/qpdf/QPDFObjGen.hh b/include/qpdf/QPDFObjGen.hh index 30f609a7..e0834a9e 100644 --- a/include/qpdf/QPDFObjGen.hh +++ b/include/qpdf/QPDFObjGen.hh @@ -47,13 +47,19 @@ class QPDFObjGen bool operator<(QPDFObjGen const& rhs) const { - return ((obj < rhs.obj) || ((obj == rhs.obj) && (gen < rhs.gen))); + return (obj < rhs.obj) || ((obj == rhs.obj) && (gen < rhs.gen)); } QPDF_DLL bool operator==(QPDFObjGen const& rhs) const { - return ((obj == rhs.obj) && (gen == rhs.gen)); + return (obj == rhs.obj) && (gen == rhs.gen); + } + QPDF_DLL + bool + operator!=(QPDFObjGen const& rhs) const + { + return (obj != rhs.obj) || (gen != rhs.gen); } QPDF_DLL int