summaryrefslogtreecommitdiff
path: root/poppler/SplashOutputDev.cc
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 /poppler/SplashOutputDev.cc
parent244c7d6926463b079b1f96e34d9e4451d352942e (diff)
Use the existing Ref operator==
Diffstat (limited to 'poppler/SplashOutputDev.cc')
-rw-r--r--poppler/SplashOutputDev.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index fd89511b..51d2191d 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -15,7 +15,7 @@
//
// Copyright (C) 2005 Takashi Iwai <tiwai@suse.de>
// Copyright (C) 2006 Stefan Schweizer <genstef@gentoo.org>
-// Copyright (C) 2006-2018 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2006-2019 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2006 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
// Copyright (C) 2006 Scott Turner <scotty1024@mac.com>
// Copyright (C) 2007 Koji Otani <sho@bbr.jp>
@@ -1204,8 +1204,7 @@ public:
~SplashOutFontFileID() {}
bool matches(SplashFontFileID *id) override {
- return ((SplashOutFontFileID *)id)->r.num == r.num &&
- ((SplashOutFontFileID *)id)->r.gen == r.gen;
+ return ((SplashOutFontFileID *)id)->r == r;
}
private:
@@ -1234,7 +1233,7 @@ public:
T3FontCache& operator=(const T3FontCache &) = delete;
bool matches(const Ref *idA, double m11A, double m12A,
double m21A, double m22A)
- { return fontID.num == idA->num && fontID.gen == idA->gen &&
+ { return fontID == *idA &&
m11 == m11A && m12 == m12A && m21 == m21A && m22 == m22A; }
Ref fontID; // PDF font ID