aboutsummaryrefslogtreecommitdiffstats
path: root/zlib-flate/zlib-flate.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2023-05-20 17:29:09 +0200
committerGitHub <noreply@github.com>2023-05-20 17:29:09 +0200
commitfd17c8e3fe38a56abf50ce0edec1cde48d4f74cb (patch)
treec1efea1b140cac94dbaf496ae6ec5e0a621daa07 /zlib-flate/zlib-flate.cc
parenta6d7b79e65941238871c0c3d7d06b9bf246213ba (diff)
parente6577a1323cd813a92ddbc8841e1342c05de071a (diff)
downloadqpdf-fd17c8e3fe38a56abf50ce0edec1cde48d4f74cb.tar.zst
Merge pull request #963 from m-holger/tidy
Code tidy
Diffstat (limited to 'zlib-flate/zlib-flate.cc')
-rw-r--r--zlib-flate/zlib-flate.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/zlib-flate/zlib-flate.cc b/zlib-flate/zlib-flate.cc
index f7d0c807..d1311c84 100644
--- a/zlib-flate/zlib-flate.cc
+++ b/zlib-flate/zlib-flate.cc
@@ -5,11 +5,11 @@
#include <fcntl.h>
#include <iostream>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
-static char const* whoami = 0;
+static char const* whoami = nullptr;
void
usage()
@@ -27,7 +27,7 @@ usage()
int
main(int argc, char* argv[])
{
- if ((whoami = strrchr(argv[0], '/')) == NULL) {
+ if ((whoami = strrchr(argv[0], '/')) == nullptr) {
whoami = argv[0];
} else {
++whoami;