diff --git a/libqpdf/QPDF_optimization.cc b/libqpdf/QPDF_optimization.cc index 2c8ec7e..65916c7 100644 --- a/libqpdf/QPDF_optimization.cc +++ b/libqpdf/QPDF_optimization.cc @@ -32,16 +32,17 @@ QPDF::ObjUser::ObjUser(user_e type, std::string const& key) : bool QPDF::ObjUser::operator<(ObjUser const& rhs) const { - if (this->ou_type < rhs.ou_type) { + if (ou_type < rhs.ou_type) { return true; - } else if (this->ou_type == rhs.ou_type) { - if (this->pageno < rhs.pageno) { + } + if (ou_type == rhs.ou_type) { + if (pageno < rhs.pageno) { return true; - } else if (this->pageno == rhs.pageno) { - return (this->key < rhs.key); + } + if (pageno == rhs.pageno) { + return key < rhs.key; } } - return false; }