aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-count-strings.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 /examples/pdf-count-strings.cc
parent7bc0f1d828eccbc5a277b75aedc85b7523919f87 (diff)
downloadqpdf-5906dd5c1f050af5d6eb2b9e9e5a0099e44b3ae6.tar.zst
Code tidy - Clang-Tidy rule modernize-use-default-member-init
Diffstat (limited to 'examples/pdf-count-strings.cc')
-rw-r--r--examples/pdf-count-strings.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/pdf-count-strings.cc b/examples/pdf-count-strings.cc
index 2061a499..2e2ef8bf 100644
--- a/examples/pdf-count-strings.cc
+++ b/examples/pdf-count-strings.cc
@@ -26,8 +26,7 @@ usage()
class StringCounter: public QPDFObjectHandle::TokenFilter
{
public:
- StringCounter() :
- count(0)
+ StringCounter()
{
}
~StringCounter() override = default;
@@ -36,7 +35,7 @@ class StringCounter: public QPDFObjectHandle::TokenFilter
int getCount() const;
private:
- int count;
+ int count{0};
};
void