Mark a variable const

This commit is contained in:
Přemysl Eric Janouch 2018-10-02 23:18:22 +02:00
parent 4c7853c951
commit daa9cc1ed4
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

View File

@ -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};