Commit e28f4efb00d5040fa71532d76e63aa7ade105c99
1 parent
7f043fe8
Replace deprecated C++ includes
Showing
73 changed files
with
121 additions
and
121 deletions
examples/pdf-bookmarks.cc
| ... | ... | @@ -5,8 +5,8 @@ |
| 5 | 5 | #include <qpdf/QTC.hh> |
| 6 | 6 | #include <qpdf/QUtil.hh> |
| 7 | 7 | #include <iostream> |
| 8 | -#include <stdlib.h> | |
| 9 | -#include <string.h> | |
| 8 | +#include <cstdlib> | |
| 9 | +#include <cstring> | |
| 10 | 10 | |
| 11 | 11 | // This program demonstrates extraction of bookmarks using the qpdf |
| 12 | 12 | // outlines API. Note that all the information shown by this program | ... | ... |
examples/pdf-count-strings.cc
examples/pdf-create.cc
examples/pdf-double-page-size.cc
examples/pdf-filter-tokens.cc
examples/pdf-invert-images.cc
examples/pdf-mod-info.cc
| ... | ... | @@ -6,9 +6,9 @@ |
| 6 | 6 | #include <qpdf/QTC.hh> |
| 7 | 7 | #include <qpdf/QUtil.hh> |
| 8 | 8 | #include <iostream> |
| 9 | -#include <stdio.h> | |
| 10 | -#include <stdlib.h> | |
| 11 | -#include <string.h> | |
| 9 | +#include <cstdio> | |
| 10 | +#include <cstdlib> | |
| 11 | +#include <cstring> | |
| 12 | 12 | |
| 13 | 13 | static char const* version = "1.1"; |
| 14 | 14 | static char const* whoami = nullptr; | ... | ... |
examples/pdf-npages.cc
examples/pdf-overlay-page.cc
| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | #include <qpdf/QPDFWriter.hh> |
| 5 | 5 | #include <qpdf/QUtil.hh> |
| 6 | 6 | #include <iostream> |
| 7 | -#include <stdlib.h> | |
| 7 | +#include <cstdlib> | |
| 8 | 8 | |
| 9 | 9 | // This program demonstrates use of form XObjects to overlay a page |
| 10 | 10 | // from one file onto all pages of another file. The qpdf program's | ... | ... |
examples/pdf-parse-content.cc
examples/pdf-set-form-values.cc
examples/pdf-split-pages.cc
include/qpdf/Buffer.hh
include/qpdf/InputSource.hh
include/qpdf/Pl_StdioFile.hh
include/qpdf/QPDF.hh
include/qpdf/QPDFTokenizer.hh
include/qpdf/QPDFWriter.hh
include/qpdf/QUtil.hh
include/qpdf/RandomDataProvider.hh
libqpdf/BufferInputSource.cc
libqpdf/FileInputSource.cc
libqpdf/InputSource.cc
libqpdf/InsecureRandomDataProvider.cc
libqpdf/MD5.cc
libqpdf/Pl_ASCII85Decoder.cc
libqpdf/Pl_ASCIIHexDecoder.cc
libqpdf/Pl_Buffer.cc
libqpdf/Pl_DCT.cc
libqpdf/Pl_Flate.cc
libqpdf/Pl_LZWDecoder.cc
libqpdf/Pl_PNGFilter.cc
libqpdf/Pl_StdioFile.cc
libqpdf/Pl_TIFFPredictor.cc
libqpdf/QPDF.cc
libqpdf/QPDFFormFieldObjectHelper.cc
libqpdf/QPDFJob.cc
libqpdf/QPDFJob_argv.cc
| ... | ... | @@ -3,12 +3,12 @@ |
| 3 | 3 | // See "HOW TO ADD A COMMAND-LINE ARGUMENT" in README-maintainer. |
| 4 | 4 | |
| 5 | 5 | #include <cstdio> |
| 6 | -#include <ctype.h> | |
| 6 | +#include <cctype> | |
| 7 | 7 | #include <iostream> |
| 8 | 8 | #include <memory> |
| 9 | 9 | #include <sstream> |
| 10 | -#include <stdlib.h> | |
| 11 | -#include <string.h> | |
| 10 | +#include <cstdlib> | |
| 11 | +#include <cstring> | |
| 12 | 12 | |
| 13 | 13 | #include <qpdf/QIntC.hh> |
| 14 | 14 | #include <qpdf/QPDFArgParser.hh> | ... | ... |
libqpdf/QPDFObjectHandle.cc
| ... | ... | @@ -30,10 +30,10 @@ |
| 30 | 30 | |
| 31 | 31 | #include <algorithm> |
| 32 | 32 | #include <cstring> |
| 33 | -#include <ctype.h> | |
| 34 | -#include <limits.h> | |
| 33 | +#include <cctype> | |
| 34 | +#include <climits> | |
| 35 | 35 | #include <stdexcept> |
| 36 | -#include <stdlib.h> | |
| 36 | +#include <cstdlib> | |
| 37 | 37 | |
| 38 | 38 | using namespace std::literals; |
| 39 | 39 | ... | ... |
libqpdf/QPDFSystemError.cc
libqpdf/QPDFTokenizer.cc
libqpdf/QPDFWriter.cc
libqpdf/QPDF_encryption.cc
libqpdf/QPDF_linearization.cc
libqpdf/QTC.cc
libqpdf/QUtil.cc
| ... | ... | @@ -9,8 +9,8 @@ |
| 9 | 9 | #include <qpdf/QPDFSystemError.hh> |
| 10 | 10 | #include <qpdf/QTC.hh> |
| 11 | 11 | |
| 12 | -#include <ctype.h> | |
| 13 | -#include <errno.h> | |
| 12 | +#include <cctype> | |
| 13 | +#include <cerrno> | |
| 14 | 14 | #include <fcntl.h> |
| 15 | 15 | #include <fstream> |
| 16 | 16 | #include <iomanip> |
| ... | ... | @@ -21,9 +21,9 @@ |
| 21 | 21 | #include <set> |
| 22 | 22 | #include <sstream> |
| 23 | 23 | #include <stdexcept> |
| 24 | -#include <stdio.h> | |
| 25 | -#include <stdlib.h> | |
| 26 | -#include <string.h> | |
| 24 | +#include <cstdio> | |
| 25 | +#include <cstdlib> | |
| 26 | +#include <cstring> | |
| 27 | 27 | #ifndef QPDF_NO_WCHAR_T |
| 28 | 28 | # include <cwchar> |
| 29 | 29 | #endif | ... | ... |
libqpdf/qpdf/BitStream.hh
libqpdf/qpdf/BitWriter.hh
libtests/aes.cc
libtests/ascii85.cc
libtests/bits.cc
libtests/buffer.cc
libtests/closed_file_input_source.cc
libtests/dct_compress.cc
libtests/dct_uncompress.cc
libtests/flate.cc
libtests/hex.cc
libtests/lzw.cc
libtests/md5.cc
libtests/predictors.cc
libtests/qintc.cc
libtests/qutil.cc
libtests/rc4.cc
libtests/runlength.cc
libtests/sha2.cc
qpdf/pdf_from_scratch.cc
| ... | ... | @@ -5,9 +5,9 @@ |
| 5 | 5 | #include <qpdf/QPDFWriter.hh> |
| 6 | 6 | #include <qpdf/QUtil.hh> |
| 7 | 7 | #include <iostream> |
| 8 | -#include <stdio.h> | |
| 9 | -#include <stdlib.h> | |
| 10 | -#include <string.h> | |
| 8 | +#include <cstdio> | |
| 9 | +#include <cstdlib> | |
| 10 | +#include <cstring> | |
| 11 | 11 | |
| 12 | 12 | static char const* whoami = 0; |
| 13 | 13 | ... | ... |
qpdf/test_driver.cc
| ... | ... | @@ -27,12 +27,12 @@ |
| 27 | 27 | #include <qpdf/QTC.hh> |
| 28 | 28 | #include <qpdf/QUtil.hh> |
| 29 | 29 | #include <iostream> |
| 30 | -#include <limits.h> | |
| 30 | +#include <climits> | |
| 31 | 31 | #include <map> |
| 32 | 32 | #include <sstream> |
| 33 | -#include <stdio.h> | |
| 34 | -#include <stdlib.h> | |
| 35 | -#include <string.h> | |
| 33 | +#include <cstdio> | |
| 34 | +#include <cstdlib> | |
| 35 | +#include <cstring> | |
| 36 | 36 | |
| 37 | 37 | #define QPDF_OBJECT_NOWARN |
| 38 | 38 | #include <qpdf/QPDFObject.hh> | ... | ... |
qpdf/test_large_file.cc
| ... | ... | @@ -13,8 +13,8 @@ |
| 13 | 13 | #include <qpdf/QPDFWriter.hh> |
| 14 | 14 | #include <qpdf/QUtil.hh> |
| 15 | 15 | #include <iostream> |
| 16 | -#include <stdlib.h> | |
| 17 | -#include <string.h> | |
| 16 | +#include <cstdlib> | |
| 17 | +#include <cstring> | |
| 18 | 18 | |
| 19 | 19 | // Run "test_large_file write small a.pdf" to get a PDF file that you |
| 20 | 20 | // can look at in a reader. | ... | ... |
qpdf/test_pdf_doc_encoding.cc
qpdf/test_pdf_unicode.cc
qpdf/test_tokenizer.cc
| ... | ... | @@ -7,9 +7,9 @@ |
| 7 | 7 | #include <qpdf/QPDFTokenizer.hh> |
| 8 | 8 | #include <qpdf/QUtil.hh> |
| 9 | 9 | #include <iostream> |
| 10 | -#include <stdio.h> | |
| 11 | -#include <stdlib.h> | |
| 12 | -#include <string.h> | |
| 10 | +#include <cstdio> | |
| 11 | +#include <cstdlib> | |
| 12 | +#include <cstring> | |
| 13 | 13 | |
| 14 | 14 | static char const* whoami = 0; |
| 15 | 15 | ... | ... |
qpdf/test_unicode_filenames.cc
zlib-flate/zlib-flate.cc