Commit a64215e6a280ce00bbb8ba3181603542a3f62670

Authored by m-holger
1 parent cff95bff

Tidy QPDF::ObjUser::operator<

Showing 1 changed file with 7 additions and 6 deletions
libqpdf/QPDF_optimization.cc
... ... @@ -32,16 +32,17 @@ QPDF::ObjUser::ObjUser(user_e type, std::string const&amp; key) :
32 32 bool
33 33 QPDF::ObjUser::operator<(ObjUser const& rhs) const
34 34 {
35   - if (this->ou_type < rhs.ou_type) {
  35 + if (ou_type < rhs.ou_type) {
36 36 return true;
37   - } else if (this->ou_type == rhs.ou_type) {
38   - if (this->pageno < rhs.pageno) {
  37 + }
  38 + if (ou_type == rhs.ou_type) {
  39 + if (pageno < rhs.pageno) {
39 40 return true;
40   - } else if (this->pageno == rhs.pageno) {
41   - return (this->key < rhs.key);
  41 + }
  42 + if (pageno == rhs.pageno) {
  43 + return key < rhs.key;
42 44 }
43 45 }
44   -
45 46 return false;
46 47 }
47 48  
... ...