diff options
Diffstat (limited to 'libqpdf/QPDFTokenizer.cc')
-rw-r--r-- | libqpdf/QPDFTokenizer.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libqpdf/QPDFTokenizer.cc b/libqpdf/QPDFTokenizer.cc index 5f70542e..a38b9ef8 100644 --- a/libqpdf/QPDFTokenizer.cc +++ b/libqpdf/QPDFTokenizer.cc @@ -568,10 +568,7 @@ QPDFTokenizer::findEI(std::shared_ptr<InputSource> input) bool found_non_printable = false; bool found_other = false; std::string value = t.getValue(); - for (std::string::iterator iter = value.begin(); - iter != value.end(); - ++iter) { - char ch = *iter; + for (char ch: value) { if (((ch >= 'a') && (ch <= 'z')) || ((ch >= 'A') && (ch <= 'Z')) || (ch == '*')) { // Treat '*' as alpha since there are valid |