consistently return x3 grammars by const&

This commit is contained in:
artemp 2016-09-15 15:40:38 +02:00
parent dfbe7fd893
commit c03cb2d434
10 changed files with 10 additions and 10 deletions

View file

@ -48,7 +48,7 @@ BOOST_SPIRIT_DECLARE(css_color_grammar_type);
namespace mapnik
{
css_color_grammar::css_color_grammar_type color_grammar();
css_color_grammar::css_color_grammar_type const& color_grammar();
}

View file

@ -444,7 +444,7 @@ BOOST_SPIRIT_DEFINE(
} // ns
css_color_grammar::css_color_grammar_type color_grammar()
css_color_grammar::css_color_grammar_type const& color_grammar()
{
return css_color_grammar::css_color;
}

View file

@ -44,7 +44,7 @@ BOOST_SPIRIT_DECLARE(expression_grammar_type);
namespace mapnik
{
grammar::expression_grammar_type expression_grammar();
grammar::expression_grammar_type const& expression_grammar();
}

View file

@ -424,7 +424,7 @@ namespace mapnik { namespace grammar {
namespace mapnik
{
grammar::expression_grammar_type expression_grammar()
grammar::expression_grammar_type const& expression_grammar()
{
return grammar::expression;
}

View file

@ -49,7 +49,7 @@ BOOST_SPIRIT_DECLARE(image_filter_grammar_type);
namespace mapnik {
image_filter::image_filter_grammar_type image_filter_grammar();
image_filter::image_filter_grammar_type const& image_filter_grammar();
}

View file

@ -251,7 +251,7 @@ BOOST_SPIRIT_DEFINE(
} // image_filter
image_filter::image_filter_grammar_type image_filter_grammar()
image_filter::image_filter_grammar_type const& image_filter_grammar()
{
return image_filter::start;
}

View file

@ -45,7 +45,7 @@ BOOST_SPIRIT_DECLARE(transform_expression_grammar_type);
namespace mapnik
{
grammar::transform_expression_grammar_type transform_expression_grammar();
grammar::transform_expression_grammar_type const& transform_expression_grammar();
}
#endif

View file

@ -175,7 +175,7 @@ namespace mapnik { namespace grammar {
namespace mapnik
{
grammar::transform_expression_grammar_type transform_expression_grammar()
grammar::transform_expression_grammar_type const& transform_expression_grammar()
{
return grammar::transform;
}

View file

@ -42,7 +42,7 @@ BOOST_SPIRIT_DECLARE(wkt_grammar_type);
namespace mapnik
{
grammar::wkt_grammar_type wkt_grammar();
grammar::wkt_grammar_type const& wkt_grammar();
}

View file

@ -121,7 +121,7 @@ BOOST_SPIRIT_DEFINE(
namespace mapnik
{
grammar::wkt_grammar_type wkt_grammar()
grammar::wkt_grammar_type const& wkt_grammar()
{
return grammar::wkt;
}