summaryrefslogtreecommitdiffstats
path: root/libtests/bits.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 /libtests/bits.cc
parenta6d7b79e65941238871c0c3d7d06b9bf246213ba (diff)
parente6577a1323cd813a92ddbc8841e1342c05de071a (diff)
downloadqpdf-fd17c8e3fe38a56abf50ce0edec1cde48d4f74cb.tar.zst
Merge pull request #963 from m-holger/tidy
Code tidy
Diffstat (limited to 'libtests/bits.cc')
-rw-r--r--libtests/bits.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libtests/bits.cc b/libtests/bits.cc
index 07870eb7..af715da8 100644
--- a/libtests/bits.cc
+++ b/libtests/bits.cc
@@ -4,8 +4,7 @@
#include <qpdf/QIntC.hh>
#include <qpdf/QUtil.hh>
#include <iostream>
-#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
// See comments in bits_functions.hh
#define BITS_TESTING 1
@@ -142,7 +141,7 @@ test()
unsigned char ch = 0;
bit_offset = 7;
- Pl_Buffer* bp = new Pl_Buffer("buffer");
+ auto* bp = new Pl_Buffer("buffer");
test_write_bits(ch, bit_offset, 30UL, 5, bp);
test_write_bits(ch, bit_offset, 10UL, 4, bp);