aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFAcroFormDocumentHelper.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-16 19:21:57 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-16 19:35:27 +0200
commit75fe4f60c3f59af30cb1d8f2b5902d866c05550a (patch)
tree81106c6129626417cb9f71ab31393b31f9c27078 /libqpdf/QPDFAcroFormDocumentHelper.cc
parent38edca820eac0a79fd860895b46dd03005e3c96b (diff)
downloadqpdf-75fe4f60c3f59af30cb1d8f2b5902d866c05550a.tar.zst
Use anonymous namespaces for file-private classes
Diffstat (limited to 'libqpdf/QPDFAcroFormDocumentHelper.cc')
-rw-r--r--libqpdf/QPDFAcroFormDocumentHelper.cc31
1 files changed, 18 insertions, 13 deletions
diff --git a/libqpdf/QPDFAcroFormDocumentHelper.cc b/libqpdf/QPDFAcroFormDocumentHelper.cc
index 0354a28f..6d4b3b83 100644
--- a/libqpdf/QPDFAcroFormDocumentHelper.cc
+++ b/libqpdf/QPDFAcroFormDocumentHelper.cc
@@ -543,20 +543,25 @@ QPDFAcroFormDocumentHelper::adjustInheritedFields(
}
}
-class ResourceReplacer: public QPDFObjectHandle::TokenFilter
+namespace
{
- public:
- 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);
- virtual ~ResourceReplacer() = default;
- virtual void handleToken(QPDFTokenizer::Token const&) override;
-
- private:
- size_t offset;
- std::map<std::string, std::map<size_t, std::string>> to_replace;
-};
+ class ResourceReplacer: public QPDFObjectHandle::TokenFilter
+ {
+ public:
+ 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);
+ virtual ~ResourceReplacer() = default;
+ virtual void handleToken(QPDFTokenizer::Token const&) override;
+
+ private:
+ size_t offset;
+ 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,