Commit dc9df97466b3980ba025ee4ff8aa7012ece1a848
1 parent
157c936b
Include <algorithm> for std::min, std::max
Showing
7 changed files
with
11 additions
and
0 deletions
ChangeLog
| 1 | +2013-11-29 Jay Berkenbilt <ejb@ql.org> | ||
| 2 | + | ||
| 3 | + * Add missing #include <algorithm> in some files that use std::min | ||
| 4 | + and std::max. | ||
| 5 | + | ||
| 1 | 2013-11-21 Jay Berkenbilt <ejb@ql.org> | 6 | 2013-11-21 Jay Berkenbilt <ejb@ql.org> |
| 2 | 7 | ||
| 3 | * Change image comparison tests, which are disabled by default, to | 8 | * Change image comparison tests, which are disabled by default, to |
libqpdf/BufferInputSource.cc
| 1 | #include <qpdf/BufferInputSource.hh> | 1 | #include <qpdf/BufferInputSource.hh> |
| 2 | #include <string.h> | 2 | #include <string.h> |
| 3 | #include <stdexcept> | 3 | #include <stdexcept> |
| 4 | +#include <algorithm> | ||
| 4 | 5 | ||
| 5 | BufferInputSource::BufferInputSource(std::string const& description, | 6 | BufferInputSource::BufferInputSource(std::string const& description, |
| 6 | Buffer* buf, bool own_memory) : | 7 | Buffer* buf, bool own_memory) : |
libqpdf/FileInputSource.cc
| @@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
| 2 | #include <string.h> | 2 | #include <string.h> |
| 3 | #include <qpdf/QUtil.hh> | 3 | #include <qpdf/QUtil.hh> |
| 4 | #include <qpdf/QPDFExc.hh> | 4 | #include <qpdf/QPDFExc.hh> |
| 5 | +#include <algorithm> | ||
| 5 | 6 | ||
| 6 | FileInputSource::FileInputSource() : | 7 | FileInputSource::FileInputSource() : |
| 7 | close_file(false), | 8 | close_file(false), |
libqpdf/QPDF.cc
libqpdf/QPDFWriter.cc
| @@ -19,6 +19,7 @@ | @@ -19,6 +19,7 @@ | ||
| 19 | #include <qpdf/QPDF_Name.hh> | 19 | #include <qpdf/QPDF_Name.hh> |
| 20 | #include <qpdf/QPDF_String.hh> | 20 | #include <qpdf/QPDF_String.hh> |
| 21 | 21 | ||
| 22 | +#include <algorithm> | ||
| 22 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| 23 | 24 | ||
| 24 | QPDFWriter::QPDFWriter(QPDF& pdf) : | 25 | QPDFWriter::QPDFWriter(QPDF& pdf) : |
libqpdf/QPDF_encryption.cc
qpdf/test_driver.cc
| @@ -11,6 +11,7 @@ | @@ -11,6 +11,7 @@ | ||
| 11 | #include <qpdf/QPDFWriter.hh> | 11 | #include <qpdf/QPDFWriter.hh> |
| 12 | #include <iostream> | 12 | #include <iostream> |
| 13 | #include <sstream> | 13 | #include <sstream> |
| 14 | +#include <algorithm> | ||
| 14 | #include <stdio.h> | 15 | #include <stdio.h> |
| 15 | #include <string.h> | 16 | #include <string.h> |
| 16 | #include <stdlib.h> | 17 | #include <stdlib.h> |