Merge branch 'master' of github.com:mapnik/mapnik into stats_processor
This commit is contained in:
commit
37daca644a
2 changed files with 2 additions and 7 deletions
|
@ -36,7 +36,6 @@
|
|||
#include <mapnik/parse_path.hpp>
|
||||
#include <mapnik/marker.hpp>
|
||||
#include <mapnik/marker_cache.hpp>
|
||||
#include <mapnik/unicode.hpp>
|
||||
#include <mapnik/font_set.hpp>
|
||||
#include <mapnik/parse_path.hpp>
|
||||
#include <mapnik/map.hpp>
|
||||
|
|
|
@ -24,12 +24,11 @@
|
|||
#include <mapnik/expression.hpp>
|
||||
#include <mapnik/config_error.hpp>
|
||||
#include <mapnik/unicode.hpp>
|
||||
#include <mapnik/expression_node.hpp>
|
||||
#include <mapnik/expression_node_types.hpp>
|
||||
#include <mapnik/expression_grammar.hpp>
|
||||
#include <boost/spirit/include/qi.hpp>
|
||||
|
||||
// boost
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
namespace mapnik
|
||||
|
@ -39,7 +38,6 @@ expression_ptr parse_expression(std::string const& str, std::string const& encod
|
|||
{
|
||||
transcoder tr(encoding);
|
||||
expression_grammar<std::string::const_iterator> g(tr);
|
||||
|
||||
return parse_expression(str, g);
|
||||
}
|
||||
|
||||
|
@ -47,10 +45,8 @@ expression_ptr parse_expression(std::string const& str,
|
|||
mapnik::expression_grammar<std::string::const_iterator> 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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue