diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-05-21 16:18:15 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-05-21 22:06:29 +0200 |
commit | 6c69a747b9f7a801be2ad58985f35886bd38239e (patch) | |
tree | a35f002d4564ad1811044335c34f1b510a6774b8 /qpdf/test_pdf_doc_encoding.cc | |
parent | 70ccd807c45f477d6caf73b9390ba3acda53d1db (diff) | |
download | qpdf-6c69a747b9f7a801be2ad58985f35886bd38239e.tar.zst |
Code clean up: use range-style for loops wherever possible
Remove variables obsoleted by commit 4f24617.
Diffstat (limited to 'qpdf/test_pdf_doc_encoding.cc')
-rw-r--r-- | qpdf/test_pdf_doc_encoding.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qpdf/test_pdf_doc_encoding.cc b/qpdf/test_pdf_doc_encoding.cc index c705fd2f..5c67f59a 100644 --- a/qpdf/test_pdf_doc_encoding.cc +++ b/qpdf/test_pdf_doc_encoding.cc @@ -26,8 +26,7 @@ main(int argc, char* argv[]) usage(); } char const* infilename = argv[1]; - std::list<std::string> lines = QUtil::read_lines_from_file(infilename); - for (auto const& line: lines) { + for (auto const& line: QUtil::read_lines_from_file(infilename)) { QPDFObjectHandle str = QPDFObjectHandle::newString(line); std::cout << str.getUTF8Value() << std::endl; } |