From 073808aa50f0c78e2d6fea4f56f0b814b314eb42 Mon Sep 17 00:00:00 2001 From: m-holger Date: Tue, 26 Jul 2022 12:37:50 +0100 Subject: Code tidy : replace 0 with nullptr or true --- examples/pdf-invert-images.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/pdf-invert-images.cc') diff --git a/examples/pdf-invert-images.cc b/examples/pdf-invert-images.cc index 94392ac3..9ffb9c1f 100644 --- a/examples/pdf-invert-images.cc +++ b/examples/pdf-invert-images.cc @@ -9,7 +9,7 @@ #include #include -static char const* whoami = 0; +static char const* whoami = nullptr; void usage() @@ -142,7 +142,8 @@ main(int argc, char* argv[]) // pipeStreamData with a null pipeline to determine // whether the image is filterable. Directly inspect // keys to determine the image type. - if (image.pipeStreamData(0, qpdf_ef_compress, qpdf_dl_all) && + if (image.pipeStreamData( + nullptr, qpdf_ef_compress, qpdf_dl_all) && color_space.isNameAndEquals("/DeviceGray") && bits_per_component.isInteger() && (bits_per_component.getIntValue() == 8)) { -- cgit v1.2.3-70-g09d2