diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-06-01 15:12:39 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-06-09 16:43:21 +0200 |
commit | 5906dd5c1f050af5d6eb2b9e9e5a0099e44b3ae6 (patch) | |
tree | 31854ee87338d294782f185a459dae43e96c15f8 /libqpdf/JSON.cc | |
parent | 7bc0f1d828eccbc5a277b75aedc85b7523919f87 (diff) | |
download | qpdf-5906dd5c1f050af5d6eb2b9e9e5a0099e44b3ae6.tar.zst |
Code tidy - Clang-Tidy rule modernize-use-default-member-init
Diffstat (limited to 'libqpdf/JSON.cc')
-rw-r--r-- | libqpdf/JSON.cc | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/libqpdf/JSON.cc b/libqpdf/JSON.cc index 9e90f61d..f6401642 100644 --- a/libqpdf/JSON.cc +++ b/libqpdf/JSON.cc @@ -588,14 +588,7 @@ namespace JSONParser(InputSource& is, JSON::Reactor* reactor) : is(is), reactor(reactor), - lex_state(ls_top), - bytes(0), - p(buf), - u_count(0), - offset(0), - done(false), - parser_state(ps_top), - dict_key_offset(0) + p(buf) { } @@ -665,20 +658,20 @@ namespace InputSource& is; JSON::Reactor* reactor; - lex_state_e lex_state; + lex_state_e lex_state{ls_top}; char buf[16384]; - size_t bytes; + size_t bytes{0}; char const* p; - qpdf_offset_t u_count; + qpdf_offset_t u_count{0}; unsigned long u_value{0}; - qpdf_offset_t offset; - bool done; + qpdf_offset_t offset{0}; + bool done{false}; std::string token; qpdf_offset_t token_start{0}; - parser_state_e parser_state; + parser_state_e parser_state{ps_top}; std::vector<StackFrame> stack; std::string dict_key; - qpdf_offset_t dict_key_offset; + qpdf_offset_t dict_key_offset{0}; }; } // namespace |