From 790be266f84fa7237f7d0cf22730ede55693f5a7 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 24 Jan 2013 22:04:17 -0800 Subject: [PATCH] iwyu --- src/cairo_renderer.cpp | 1 - src/expression.cpp | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) 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); }