2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00

Add QPDFObjGen operator !=

This commit is contained in:
m-holger 2022-07-23 12:58:37 +01:00
parent bc5f0fa20b
commit 21b8625f95

View File

@ -47,13 +47,19 @@ class QPDFObjGen
bool bool
operator<(QPDFObjGen const& rhs) const 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 QPDF_DLL
bool bool
operator==(QPDFObjGen const& rhs) const 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 QPDF_DLL
int int