aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/JSON.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-05-28 00:49:18 +0200
committerm-holger <m-holger@kubitscheck.org>2023-06-09 16:42:11 +0200
commit7bc0f1d828eccbc5a277b75aedc85b7523919f87 (patch)
treebdf203f336bc7671cf4f650a9bf142f5b72dd6f6 /libqpdf/JSON.cc
parent22c6b8ccbc9693d2e9c9015a976188fc1e00e517 (diff)
downloadqpdf-7bc0f1d828eccbc5a277b75aedc85b7523919f87.tar.zst
Code tidy - Clang-Tidy rule modernize-use-emplace
Diffstat (limited to 'libqpdf/JSON.cc')
-rw-r--r--libqpdf/JSON.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/JSON.cc b/libqpdf/JSON.cc
index 27baac03..9e90f61d 100644
--- a/libqpdf/JSON.cc
+++ b/libqpdf/JSON.cc
@@ -1282,7 +1282,7 @@ JSONParser::handleToken()
case ps_top:
if (!(item.isDictionary() || item.isArray())) {
- stack.push_back({ps_done, item});
+ stack.emplace_back(ps_done, item);
parser_state = ps_done;
return;
}
@@ -1311,7 +1311,7 @@ JSONParser::handleToken()
}
if (item.isDictionary() || item.isArray()) {
- stack.push_back({parser_state, item});
+ stack.emplace_back(parser_state, item);
// Calling container start method is postponed until after adding the containers to their
// parent containers, if any. This makes it much easier to keep track of the current nesting
// level.