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/QPDFFormFieldObjectHelper.cc | |
parent | 7bc0f1d828eccbc5a277b75aedc85b7523919f87 (diff) | |
download | qpdf-5906dd5c1f050af5d6eb2b9e9e5a0099e44b3ae6.tar.zst |
Code tidy - Clang-Tidy rule modernize-use-default-member-init
Diffstat (limited to 'libqpdf/QPDFFormFieldObjectHelper.cc')
-rw-r--r-- | libqpdf/QPDFFormFieldObjectHelper.cc | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/libqpdf/QPDFFormFieldObjectHelper.cc b/libqpdf/QPDFFormFieldObjectHelper.cc index 67975451..ff21c522 100644 --- a/libqpdf/QPDFFormFieldObjectHelper.cc +++ b/libqpdf/QPDFFormFieldObjectHelper.cc @@ -481,8 +481,8 @@ namespace std::vector<std::string> opt; double tf; QPDFObjectHandle::Rectangle bbox; - enum { st_top, st_bmc, st_emc, st_end } state; - bool replaced; + enum { st_top, st_bmc, st_emc, st_end } state{st_top}; + bool replaced{false}; }; } // namespace @@ -496,9 +496,7 @@ ValueSetter::ValueSetter( V(V), opt(opt), tf(tf), - bbox(bbox), - state(st_top), - replaced(false) + bbox(bbox) { } @@ -659,21 +657,17 @@ namespace std::string getDA(); private: - double tf; - int tf_idx; + double tf{11.0}; + int tf_idx{-1}; std::string font_name; - double last_num; - int last_num_idx; + double last_num{0.0}; + int last_num_idx{-1}; std::string last_name; std::vector<std::string> DA; }; } // namespace -TfFinder::TfFinder() : - tf(11.0), - tf_idx(-1), - last_num(0.0), - last_num_idx(-1) +TfFinder::TfFinder() { } |