diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-16 19:21:57 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-16 19:35:27 +0200 |
commit | 75fe4f60c3f59af30cb1d8f2b5902d866c05550a (patch) | |
tree | 81106c6129626417cb9f71ab31393b31f9c27078 /libqpdf/QPDFTokenizer.cc | |
parent | 38edca820eac0a79fd860895b46dd03005e3c96b (diff) | |
download | qpdf-75fe4f60c3f59af30cb1d8f2b5902d866c05550a.tar.zst |
Use anonymous namespaces for file-private classes
Diffstat (limited to 'libqpdf/QPDFTokenizer.cc')
-rw-r--r-- | libqpdf/QPDFTokenizer.cc | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/libqpdf/QPDFTokenizer.cc b/libqpdf/QPDFTokenizer.cc index 972b3ab9..5f70542e 100644 --- a/libqpdf/QPDFTokenizer.cc +++ b/libqpdf/QPDFTokenizer.cc @@ -20,22 +20,25 @@ is_delimiter(char ch) return (strchr(" \t\n\v\f\r()<>[]{}/%", ch) != 0); } -class QPDFWordTokenFinder: public InputSource::Finder +namespace { - public: - QPDFWordTokenFinder( - std::shared_ptr<InputSource> is, std::string const& str) : - is(is), - str(str) + class QPDFWordTokenFinder: public InputSource::Finder { - } - virtual ~QPDFWordTokenFinder() = default; - virtual bool check(); - - private: - std::shared_ptr<InputSource> is; - std::string str; -}; + public: + QPDFWordTokenFinder( + std::shared_ptr<InputSource> is, std::string const& str) : + is(is), + str(str) + { + } + virtual ~QPDFWordTokenFinder() = default; + virtual bool check(); + + private: + std::shared_ptr<InputSource> is; + std::string str; + }; +} // namespace bool QPDFWordTokenFinder::check() |