Commit 21b8625f9595154c661ad9f6d2168cc89b291686

Authored by m-holger
1 parent bc5f0fa2

Add QPDFObjGen operator !=

Showing 1 changed file with 8 additions and 2 deletions
include/qpdf/QPDFObjGen.hh
... ... @@ -47,13 +47,19 @@ class QPDFObjGen
47 47 bool
48 48 operator<(QPDFObjGen const& rhs) const
49 49 {
50   - return ((obj < rhs.obj) || ((obj == rhs.obj) && (gen < rhs.gen)));
  50 + return (obj < rhs.obj) || ((obj == rhs.obj) && (gen < rhs.gen));
51 51 }
52 52 QPDF_DLL
53 53 bool
54 54 operator==(QPDFObjGen const& rhs) const
55 55 {
56   - return ((obj == rhs.obj) && (gen == rhs.gen));
  56 + return (obj == rhs.obj) && (gen == rhs.gen);
  57 + }
  58 + QPDF_DLL
  59 + bool
  60 + operator!=(QPDFObjGen const& rhs) const
  61 + {
  62 + return (obj != rhs.obj) || (gen != rhs.gen);
57 63 }
58 64 QPDF_DLL
59 65 int
... ...