aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFAcroFormDocumentHelper.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-06-01 15:12:39 +0200
committerm-holger <m-holger@kubitscheck.org>2023-06-09 16:43:21 +0200
commit5906dd5c1f050af5d6eb2b9e9e5a0099e44b3ae6 (patch)
tree31854ee87338d294782f185a459dae43e96c15f8 /libqpdf/QPDFAcroFormDocumentHelper.cc
parent7bc0f1d828eccbc5a277b75aedc85b7523919f87 (diff)
downloadqpdf-5906dd5c1f050af5d6eb2b9e9e5a0099e44b3ae6.tar.zst
Code tidy - Clang-Tidy rule modernize-use-default-member-init
Diffstat (limited to 'libqpdf/QPDFAcroFormDocumentHelper.cc')
-rw-r--r--libqpdf/QPDFAcroFormDocumentHelper.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libqpdf/QPDFAcroFormDocumentHelper.cc b/libqpdf/QPDFAcroFormDocumentHelper.cc
index aefe8d6b..0d336b11 100644
--- a/libqpdf/QPDFAcroFormDocumentHelper.cc
+++ b/libqpdf/QPDFAcroFormDocumentHelper.cc
@@ -473,15 +473,14 @@ namespace
virtual void handleToken(QPDFTokenizer::Token const&) override;
private:
- size_t offset;
+ size_t offset{0};
std::map<std::string, std::map<size_t, std::string>> to_replace;
};
} // namespace
ResourceReplacer::ResourceReplacer(
std::map<std::string, std::map<std::string, std::string>> const& dr_map,
- std::map<std::string, std::map<std::string, std::set<size_t>>> const& rnames) :
- offset(0)
+ std::map<std::string, std::map<std::string, std::set<size_t>>> const& rnames)
{
// We have:
// * dr_map[resource_type][key] == new_key