aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-invert-images.cc
diff options
context:
space:
mode:
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)) {