From daa9cc1ed445e95f523f122eb383f7853fcd38df Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Tue, 2 Oct 2018 23:18:22 +0200 Subject: Mark a variable const --- pdf-simple-sign.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- cgit v1.2.3-70-g09d2