aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFTokenizer.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-05-21 16:18:15 +0200
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-05-21 22:06:29 +0200
commit6c69a747b9f7a801be2ad58985f35886bd38239e (patch)
treea35f002d4564ad1811044335c34f1b510a6774b8 /libqpdf/QPDFTokenizer.cc
parent70ccd807c45f477d6caf73b9390ba3acda53d1db (diff)
downloadqpdf-6c69a747b9f7a801be2ad58985f35886bd38239e.tar.zst
Code clean up: use range-style for loops wherever possible
Remove variables obsoleted by commit 4f24617.
Diffstat (limited to 'libqpdf/QPDFTokenizer.cc')
-rw-r--r--libqpdf/QPDFTokenizer.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/QPDFTokenizer.cc b/libqpdf/QPDFTokenizer.cc
index a38b9ef8..d6467cc0 100644
--- a/libqpdf/QPDFTokenizer.cc
+++ b/libqpdf/QPDFTokenizer.cc
@@ -567,8 +567,7 @@ QPDFTokenizer::findEI(std::shared_ptr<InputSource> input)
bool found_alpha = false;
bool found_non_printable = false;
bool found_other = false;
- std::string value = t.getValue();
- for (char ch: value) {
+ for (char ch: t.getValue()) {
if (((ch >= 'a') && (ch <= 'z')) ||
((ch >= 'A') && (ch <= 'Z')) || (ch == '*')) {
// Treat '*' as alpha since there are valid