From a64215e6a280ce00bbb8ba3181603542a3f62670 Mon Sep 17 00:00:00 2001 From: m-holger Date: Thu, 6 Mar 2025 13:51:04 +0000 Subject: [PATCH] Tidy QPDF::ObjUser::operator< --- libqpdf/QPDF_optimization.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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; } -- libgit2 0.21.4