dictionary label lookup: simplified syntax using the type templated lookup function

Replaced
    readLabel(dict.lookup("name"))
with
    dict.lookup<label>("name)
This commit is contained in:
Henry Weller
2019-11-27 11:38:59 +00:00
parent f2f9fae27b
commit d987648ef4
90 changed files with 196 additions and 196 deletions

View File

@ -10,9 +10,9 @@
)
);
const label nIntervals(readLabel(pdfDictionary.lookup("nIntervals")));
const label nIntervals(pdfDictionary.lookup<label>("nIntervals"));
const label nSamples(readLabel(pdfDictionary.lookup("nSamples")));
const label nSamples(pdfDictionary.lookup<label>("nSamples"));
const bool writeData(readBool(pdfDictionary.lookup("writeData")));