diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-05-28 00:49:18 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-06-09 16:42:11 +0200 |
commit | 7bc0f1d828eccbc5a277b75aedc85b7523919f87 (patch) | |
tree | bdf203f336bc7671cf4f650a9bf142f5b72dd6f6 /libqpdf/JSON.cc | |
parent | 22c6b8ccbc9693d2e9c9015a976188fc1e00e517 (diff) | |
download | qpdf-7bc0f1d828eccbc5a277b75aedc85b7523919f87.tar.zst |
Code tidy - Clang-Tidy rule modernize-use-emplace
Diffstat (limited to 'libqpdf/JSON.cc')
-rw-r--r-- | libqpdf/JSON.cc | 4 |
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. |