Commit 04e47deaf9585b58733e57e750b6f58017d013ce

Authored by Jay Berkenbilt
1 parent 569d74d3

Fixes for clang

libqpdf/Pl_PNGFilter.cc
... ... @@ -3,6 +3,7 @@
3 3 #include <stdexcept>
4 4 #include <string.h>
5 5 #include <limits.h>
  6 +#include <algorithm>
6 7  
7 8 Pl_PNGFilter::Pl_PNGFilter(char const* identifier, Pipeline* next,
8 9 action_e action, unsigned int columns,
... ...
libqpdf/QUtil.cc
... ... @@ -326,7 +326,7 @@ QUtil::hex_decode(std::string const&amp; input)
326 326 }
327 327 else
328 328 {
329   - result.back() += ch;
  329 + result[result.length()-1] += ch;
330 330 pos = 0;
331 331 }
332 332 }
... ...