summaryrefslogtreecommitdiff
path: root/poppler/Object.h
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/Object.h')
-rw-r--r--poppler/Object.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/poppler/Object.h b/poppler/Object.h
index 506f3360..97bb742b 100644
--- a/poppler/Object.h
+++ b/poppler/Object.h
@@ -85,11 +85,11 @@ struct Ref {
int gen; // generation number
};
-inline bool operator== (const Ref& lhs, const Ref& rhs) noexcept {
+inline bool operator== (const Ref lhs, const Ref rhs) noexcept {
return lhs.num == rhs.num && lhs.gen == rhs.gen;
}
-inline bool operator< (const Ref& lhs, const Ref& rhs) noexcept {
+inline bool operator< (const Ref lhs, const Ref rhs) noexcept {
if (lhs.num != rhs.num)
return lhs.num < rhs.num;
return lhs.gen < rhs.gen;
@@ -104,7 +104,7 @@ struct hash<Ref>
using argument_type = Ref;
using result_type = size_t;
- result_type operator() (const argument_type &ref) const noexcept
+ result_type operator() (const argument_type ref) const noexcept
{
return std::hash<int>{}(ref.num) ^ (std::hash<int>{}(ref.gen) << 1);
}