aboutsummaryrefslogtreecommitdiff
path: root/pdf-simple-sign.cpp
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-10-02 23:18:22 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-03 22:47:47 +0200
commitdaa9cc1ed445e95f523f122eb383f7853fcd38df (patch)
tree7cfe863fac21fc7a9cedd977da1910029afd4f54 /pdf-simple-sign.cpp
parent4c7853c951eeab3d27be09e93dde321216a49287 (diff)
downloadpdf-simple-sign-daa9cc1ed445e95f523f122eb383f7853fcd38df.tar.gz
pdf-simple-sign-daa9cc1ed445e95f523f122eb383f7853fcd38df.tar.xz
pdf-simple-sign-daa9cc1ed445e95f523f122eb383f7853fcd38df.zip
Mark a variable const
Diffstat (limited to 'pdf-simple-sign.cpp')
-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};