Commit dc9df97466b3980ba025ee4ff8aa7012ece1a848

Authored by Jay Berkenbilt
1 parent 157c936b

Include <algorithm> for std::min, std::max

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 6 2013-11-21 Jay Berkenbilt <ejb@ql.org>
2 7  
3 8 * Change image comparison tests, which are disabled by default, to
... ...
libqpdf/BufferInputSource.cc
1 1 #include <qpdf/BufferInputSource.hh>
2 2 #include <string.h>
3 3 #include <stdexcept>
  4 +#include <algorithm>
4 5  
5 6 BufferInputSource::BufferInputSource(std::string const& description,
6 7 Buffer* buf, bool own_memory) :
... ...
libqpdf/FileInputSource.cc
... ... @@ -2,6 +2,7 @@
2 2 #include <string.h>
3 3 #include <qpdf/QUtil.hh>
4 4 #include <qpdf/QPDFExc.hh>
  5 +#include <algorithm>
5 6  
6 7 FileInputSource::FileInputSource() :
7 8 close_file(false),
... ...
libqpdf/QPDF.cc
... ... @@ -3,6 +3,7 @@
3 3  
4 4 #include <vector>
5 5 #include <map>
  6 +#include <algorithm>
6 7 #include <string.h>
7 8 #include <memory.h>
8 9  
... ...
libqpdf/QPDFWriter.cc
... ... @@ -19,6 +19,7 @@
19 19 #include <qpdf/QPDF_Name.hh>
20 20 #include <qpdf/QPDF_String.hh>
21 21  
  22 +#include <algorithm>
22 23 #include <stdlib.h>
23 24  
24 25 QPDFWriter::QPDFWriter(QPDF& pdf) :
... ...
libqpdf/QPDF_encryption.cc
... ... @@ -14,6 +14,7 @@
14 14 #include <qpdf/RC4.hh>
15 15 #include <qpdf/MD5.hh>
16 16  
  17 +#include <algorithm>
17 18 #include <assert.h>
18 19 #include <string.h>
19 20  
... ...
qpdf/test_driver.cc
... ... @@ -11,6 +11,7 @@
11 11 #include <qpdf/QPDFWriter.hh>
12 12 #include <iostream>
13 13 #include <sstream>
  14 +#include <algorithm>
14 15 #include <stdio.h>
15 16 #include <string.h>
16 17 #include <stdlib.h>
... ...