const-ness

This commit is contained in:
Artem Pavlenko 2018-07-19 15:36:00 +01:00
parent 67dbb96580
commit bdf7876652

View file

@ -87,7 +87,7 @@ namespace mapnik { namespace grammar {
auto do_attribute = [] (auto const& ctx) auto do_attribute = [] (auto const& ctx)
{ {
auto & attr = _attr(ctx); auto const& attr = _attr(ctx);
if (attr == "mapnik::geometry_type") if (attr == "mapnik::geometry_type")
{ {
_val(ctx) = std::move(geometry_type_attribute()); _val(ctx) = std::move(geometry_type_attribute());
@ -130,7 +130,7 @@ namespace mapnik { namespace grammar {
auto do_unicode = [] (auto const& ctx) auto do_unicode = [] (auto const& ctx)
{ {
auto & tr = x3::get<transcoder_tag>(ctx).get(); auto const& tr = x3::get<transcoder_tag>(ctx).get();
_val(ctx) = std::move(tr.transcode(_attr(ctx).c_str())); _val(ctx) = std::move(tr.transcode(_attr(ctx).c_str()));
}; };