From 23ba18ead27842e7742f2373b8770e07bb5f1aaa Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 25 Nov 2016 11:48:06 +0100 Subject: [PATCH] make rules const --- include/mapnik/json/geojson_grammar_x3_def.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/mapnik/json/geojson_grammar_x3_def.hpp b/include/mapnik/json/geojson_grammar_x3_def.hpp index d4e5707ee..10dd81aab 100644 --- a/include/mapnik/json/geojson_grammar_x3_def.hpp +++ b/include/mapnik/json/geojson_grammar_x3_def.hpp @@ -23,6 +23,7 @@ #ifndef MAPNIK_JSON_GEOJSON_GRAMMAR_X3_DEF_HPP #define MAPNIK_JSON_GEOJSON_GRAMMAR_X3_DEF_HPP + #include #include #include @@ -91,14 +92,14 @@ struct geometry_type_ : x3::symbols geojson_grammar_type const value("JSON Value"); key_value_type const key_value("JSON key/value"); // rules -x3::rule object("JSON Object"); -x3::rule array("JSON Array"); -x3::rule number("JSON Number"); +x3::rule const object("JSON Object"); +x3::rule const array("JSON Array"); +x3::rule const number("JSON Number"); //x3::rule key_value("JSON key/value"); // GeoJSON -x3::rule coordinates("GeoJSON Coordinates"); -x3::rule geometry_type("GeoJSON Geometry Type"); -x3::rule geojson_key_value("GeoJSON Key/Value Type"); +x3::rule const coordinates("GeoJSON Coordinates"); +x3::rule const geometry_type("GeoJSON Geometry Type"); +x3::rule const geojson_key_value("GeoJSON Key/Value Type"); auto const geojson_double = x3::real_parser>(); auto const geojson_integer = x3::int_parser();