summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-03-29 12:39:58 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-03-29 14:19:52 +0100
commit81fc9aa333f81be496d8255cd2ad4d0b9e23bba6 (patch)
treeabe7194d7ff9f6f2010f50be45c7481cdd11809f /test
parent244c7d6926463b079b1f96e34d9e4451d352942e (diff)
Use the existing Ref operator==
Diffstat (limited to 'test')
-rw-r--r--test/pdf-fullrewrite.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pdf-fullrewrite.cc b/test/pdf-fullrewrite.cc
index 22b76a3f..a9e3e8ef 100644
--- a/test/pdf-fullrewrite.cc
+++ b/test/pdf-fullrewrite.cc
@@ -247,9 +247,9 @@ static bool compareObjects(const Object *objA, const Object *objB)
if (objB->getType() != objRef) {
return false;
} else {
- Ref refA = objA->getRef();
- Ref refB = objB->getRef();
- return (refA.num == refB.num) && (refA.gen == refB.gen);
+ const Ref refA = objA->getRef();
+ const Ref refB = objB->getRef();
+ return refA == refB;
}
}
default: