diff --git a/src/cairo_renderer.cpp b/src/cairo_renderer.cpp index 1381d3c50..667e01762 100644 --- a/src/cairo_renderer.cpp +++ b/src/cairo_renderer.cpp @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include diff --git a/src/expression.cpp b/src/expression.cpp index 3210e16fb..44629de63 100644 --- a/src/expression.cpp +++ b/src/expression.cpp @@ -24,12 +24,11 @@ #include #include #include -#include +#include #include #include // boost -#include #include namespace mapnik @@ -39,7 +38,6 @@ expression_ptr parse_expression(std::string const& str, std::string const& encod { transcoder tr(encoding); expression_grammar g(tr); - return parse_expression(str, g); } @@ -47,12 +45,10 @@ expression_ptr parse_expression(std::string const& str, mapnik::expression_grammar const& g) { expr_node node; - std::string::const_iterator itr = str.begin(); std::string::const_iterator end = str.end(); - bool r = boost::spirit::qi::phrase_parse(itr, end, g, boost::spirit::standard_wide::space, node); - if (r && itr==end) + if (r && itr == end) { return boost::make_shared(node); }