mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
Minimal roll back const changes
Changes to expression_ptr and path_expression_ptr are causing runtime issues with the python bindings
This commit is contained in:
parent
dc3763885c
commit
bd5df80f75
@ -34,7 +34,7 @@
|
||||
namespace mapnik
|
||||
{
|
||||
|
||||
typedef boost::shared_ptr<const expr_node> expression_ptr;
|
||||
typedef boost::shared_ptr<expr_node> expression_ptr;
|
||||
|
||||
|
||||
MAPNIK_DECL expression_ptr parse_expression (std::string const& wkt, std::string const& encoding = "UTF8");
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
|
||||
namespace mapnik {
|
||||
|
||||
typedef boost::shared_ptr<const path_expression> path_expression_ptr;
|
||||
typedef boost::shared_ptr<path_expression> path_expression_ptr;
|
||||
|
||||
MAPNIK_DECL path_expression_ptr parse_path(std::string const & str);
|
||||
MAPNIK_DECL path_expression_ptr parse_path(std::string const & str,
|
||||
|
||||
@ -52,7 +52,7 @@ expression_ptr parse_expression(std::string const& str,
|
||||
bool r = boost::spirit::qi::phrase_parse(itr, end, g, boost::spirit::standard_wide::space, node);
|
||||
if (r && itr==end)
|
||||
{
|
||||
return boost::make_shared<const expr_node>(node);
|
||||
return boost::make_shared<expr_node>(node);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -43,7 +43,7 @@ path_expression_ptr parse_path(std::string const& str,
|
||||
bool r = qi::phrase_parse(itr, end, g, boost::spirit::standard_wide::space, path);
|
||||
if (r && itr == end)
|
||||
{
|
||||
return boost::make_shared<const path_expression>(path); //path;
|
||||
return boost::make_shared<path_expression>(path); //path;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user