aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFParser.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2023-06-17 17:29:21 +0200
committerGitHub <noreply@github.com>2023-06-17 17:29:21 +0200
commit0b538ec8779a81d499865a82ffcb4f02f4471743 (patch)
tree897778e1d6d1d9070a8327db60f5bc5dbfae8a42 /libqpdf/QPDFParser.cc
parent21612165c6c1b49b88786c0232215f2e894254ea (diff)
parentd784e8033c0aafce9becf720dfedf1872c74983e (diff)
downloadqpdf-0b538ec8779a81d499865a82ffcb4f02f4471743.tar.zst
Merge pull request #982 from m-holger/cltidy
Apply various Clang-Tidy rules
Diffstat (limited to 'libqpdf/QPDFParser.cc')
-rw-r--r--libqpdf/QPDFParser.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFParser.cc b/libqpdf/QPDFParser.cc
index 48227e55..6dcbddb5 100644
--- a/libqpdf/QPDFParser.cc
+++ b/libqpdf/QPDFParser.cc
@@ -55,7 +55,7 @@ QPDFParser::parse(bool& empty, bool content_stream)
bool set_offset = false;
std::vector<StackFrame> stack;
- stack.push_back(StackFrame(input));
+ stack.emplace_back(input);
std::vector<parser_state_e> state_stack;
state_stack.push_back(st_top);
qpdf_offset_t offset;
@@ -141,7 +141,7 @@ QPDFParser::parse(bool& empty, bool content_stream)
(tokenizer.getType() == QPDFTokenizer::tt_array_open) ? st_array
: st_dictionary);
b_contents = false;
- stack.push_back(StackFrame(input));
+ stack.emplace_back(input);
}
break;