diff options
author | Přemysl Janouch <p@janouch.name> | 2018-10-02 23:18:22 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-10-03 22:47:47 +0200 |
commit | daa9cc1ed445e95f523f122eb383f7853fcd38df (patch) | |
tree | 7cfe863fac21fc7a9cedd977da1910029afd4f54 | |
parent | 4c7853c951eeab3d27be09e93dde321216a49287 (diff) | |
download | pdf-simple-sign-daa9cc1ed445e95f523f122eb383f7853fcd38df.tar.gz pdf-simple-sign-daa9cc1ed445e95f523f122eb383f7853fcd38df.tar.xz pdf-simple-sign-daa9cc1ed445e95f523f122eb383f7853fcd38df.zip |
Mark a variable const
-rw-r--r-- | pdf-simple-sign.cpp | 2 |
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}; |