mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont bother hashing object numbers, just use them directly as the hash
This commit is contained in:
parent
e080435407
commit
b6c8d9da5e
@ -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<pdf_objnum>()(obj.ObjectNumber());
|
||||
return obj.ObjectNumber();
|
||||
}
|
||||
};
|
||||
typedef std::unordered_set<PdfReference, PdfReferenceHasher> unordered_reference_set;
|
||||
|
Loading…
x
Reference in New Issue
Block a user