summaryrefslogtreecommitdiffstats
path: root/examples/pdf-count-strings.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pdf-count-strings.cc')
-rw-r--r--examples/pdf-count-strings.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/pdf-count-strings.cc b/examples/pdf-count-strings.cc
index 2061a499..2b5b5573 100644
--- a/examples/pdf-count-strings.cc
+++ b/examples/pdf-count-strings.cc
@@ -26,17 +26,14 @@ usage()
class StringCounter: public QPDFObjectHandle::TokenFilter
{
public:
- StringCounter() :
- count(0)
- {
- }
+ StringCounter() = default;
~StringCounter() override = default;
void handleToken(QPDFTokenizer::Token const&) override;
void handleEOF() override;
int getCount() const;
private:
- int count;
+ int count{0};
};
void