diff options
Diffstat (limited to 'include/qpdf/QPDFObjGen.hh')
-rw-r--r-- | include/qpdf/QPDFObjGen.hh | 10 |
1 files 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 |