summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf-simple-sign.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-simple-sign.cpp b/pdf-simple-sign.cpp
index e18c058..ec2e6ae 100644
--- a/pdf-simple-sign.cpp
+++ b/pdf-simple-sign.cpp
@@ -562,7 +562,7 @@ pdf_object pdf_updater::get(uint n, uint generation) const {
if (n >= xref_size)
return {pdf_object::NIL};
- auto& ref = xref[n];
+ const auto& ref = xref[n];
if (ref.free || ref.generation != generation || ref.offset >= document.length())
return {pdf_object::NIL};