From b6c8d9da5e882a1509c6ce462893afcfb142ebde Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 27 Jul 2019 11:05:45 +0530 Subject: [PATCH] Dont bother hashing object numbers, just use them directly as the hash --- src/calibre/utils/podofo/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/podofo/global.h b/src/calibre/utils/podofo/global.h index 6e24796cbb..c8eae1dbb5 100644 --- a/src/calibre/utils/podofo/global.h +++ b/src/calibre/utils/podofo/global.h @@ -89,7 +89,7 @@ dictionary_has_key_name(const PdfDictionary &d, T key, const char *name) { class PdfReferenceHasher { public: size_t operator()(const PdfReference & obj) const { - return std::hash()(obj.ObjectNumber()); + return obj.ObjectNumber(); } }; typedef std::unordered_set unordered_reference_set;