diff --git a/include/mapnik/feature_style_processor.hpp b/include/mapnik/feature_style_processor.hpp index 062c9d666..c0ba4f383 100644 --- a/include/mapnik/feature_style_processor.hpp +++ b/include/mapnik/feature_style_processor.hpp @@ -110,7 +110,7 @@ private: /*! * \brief render features list queued when they are available. */ - void render_material(layer_rendering_material & mat, Processor & p ); + void render_material(layer_rendering_material const & mat, Processor & p ); Map const& m_; }; diff --git a/include/mapnik/feature_style_processor_impl.hpp b/include/mapnik/feature_style_processor_impl.hpp index 42bcaa9bc..89e0c3a6d 100644 --- a/include/mapnik/feature_style_processor_impl.hpp +++ b/include/mapnik/feature_style_processor_impl.hpp @@ -133,7 +133,7 @@ void feature_style_processor::apply(double scale_denom) } } - for ( layer_rendering_material & mat : mat_list ) + for ( layer_rendering_material const & mat : mat_list ) { if (!mat.active_styles_.empty()) { @@ -442,11 +442,11 @@ void feature_style_processor::prepare_layer(layer_rendering_material template -void feature_style_processor::render_material(layer_rendering_material & mat, +void feature_style_processor::render_material(layer_rendering_material const & mat, Processor & p ) { - std::vector & active_styles = mat.active_styles_; - std::vector & featureset_ptr_list = mat.featureset_ptr_list_; + std::vector const & active_styles = mat.active_styles_; + std::vector const & featureset_ptr_list = mat.featureset_ptr_list_; if (featureset_ptr_list.empty()) { // The datasource wasn't queried because of early return @@ -463,7 +463,7 @@ void feature_style_processor::render_material(layer_rendering_materia layer const& lay = mat.lay_; - std::vector & rule_caches = mat.rule_caches_; + std::vector const & rule_caches = mat.rule_caches_; proj_transform prj_trans(mat.proj0_,mat.proj1_); @@ -543,7 +543,7 @@ void feature_style_processor::render_material(layer_rendering_materia else { std::size_t i = 0; - std::vector::iterator featuresets = featureset_ptr_list.begin(); + std::vector::const_iterator featuresets = featureset_ptr_list.cbegin(); for (feature_type_style const* style : active_styles) { featureset_ptr features = *featuresets++;