summaryrefslogtreecommitdiffstats
path: root/examples/pdf-invert-images.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-07-31 14:33:45 +0200
committerGitHub <noreply@github.com>2022-07-31 14:33:45 +0200
commit4feb10fdaf51bf3f88b853cdb32a1e9b1692ba52 (patch)
treea99925c17b8acddd802c705221ee71b71f891694 /examples/pdf-invert-images.cc
parentc9cc8cfd74fdb59d5450939e1772dea35d369b04 (diff)
parent073808aa50f0c78e2d6fea4f56f0b814b314eb42 (diff)
downloadqpdf-4feb10fdaf51bf3f88b853cdb32a1e9b1692ba52.tar.zst
Merge pull request #734 from m-holger/nullptr
Code tidy : replace 0 with nullptr or true
Diffstat (limited to 'examples/pdf-invert-images.cc')
-rw-r--r--examples/pdf-invert-images.cc5
1 files changed, 3 insertions, 2 deletions
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 <stdlib.h>
#include <string.h>
-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)) {