diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-06-01 15:12:39 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-06-09 16:43:21 +0200 |
commit | 5906dd5c1f050af5d6eb2b9e9e5a0099e44b3ae6 (patch) | |
tree | 31854ee87338d294782f185a459dae43e96c15f8 /libtests | |
parent | 7bc0f1d828eccbc5a277b75aedc85b7523919f87 (diff) | |
download | qpdf-5906dd5c1f050af5d6eb2b9e9e5a0099e44b3ae6.tar.zst |
Code tidy - Clang-Tidy rule modernize-use-default-member-init
Diffstat (limited to 'libtests')
-rw-r--r-- | libtests/arg_parser.cc | 5 | ||||
-rw-r--r-- | libtests/dct_compress.cc | 8 |
2 files changed, 5 insertions, 8 deletions
diff --git a/libtests/arg_parser.cc b/libtests/arg_parser.cc index fde00520..ad9d85e9 100644 --- a/libtests/arg_parser.cc +++ b/libtests/arg_parser.cc @@ -28,12 +28,11 @@ class ArgParser void output(std::string const&); QPDFArgParser ap; - int quacks; + int quacks{0}; }; ArgParser::ArgParser(int argc, char* argv[]) : - ap(QPDFArgParser(argc, argv, "TEST_ARG_PARSER")), - quacks(0) + ap(QPDFArgParser(argc, argv, "TEST_ARG_PARSER")) { initOptions(); } diff --git a/libtests/dct_compress.cc b/libtests/dct_compress.cc index 3f7c86a1..ab6e3b53 100644 --- a/libtests/dct_compress.cc +++ b/libtests/dct_compress.cc @@ -10,21 +10,19 @@ static void usage() { - std::cerr << "Usage: dct_compress infile outfile width height" - << " {rgb|cmyk|gray}" << std::endl; + std::cerr << "Usage: dct_compress infile outfile width height {rgb|cmyk|gray}" << std::endl; exit(2); } class Callback: public Pl_DCT::CompressConfig { public: - Callback() : - called(false) + Callback() { } ~Callback() override = default; void apply(jpeg_compress_struct*) override; - bool called; + bool called{false}; }; void |