enforce geometry_type const by removing ``inline geometry_type& get_geometry(std::size_t index)
``
This commit is contained in:
parent
e19fdad3a6
commit
0f22fb596b
3 changed files with 2 additions and 7 deletions
|
@ -219,11 +219,6 @@ public:
|
|||
return geom_cont_[index];
|
||||
}
|
||||
|
||||
inline geometry_type& get_geometry(std::size_t index)
|
||||
{
|
||||
return geom_cont_[index];
|
||||
}
|
||||
|
||||
inline box2d<double> envelope() const
|
||||
{
|
||||
// TODO - cache this
|
||||
|
|
|
@ -79,7 +79,7 @@ public:
|
|||
{
|
||||
for (std::size_t i=0; i<(*pos_)->num_geometries();++i)
|
||||
{
|
||||
geometry_type & geom = (*pos_)->get_geometry(i);
|
||||
geometry_type const& geom = (*pos_)->get_geometry(i);
|
||||
if (bbox_.intersects(::mapnik::envelope(geom)))
|
||||
{
|
||||
return *pos_++;
|
||||
|
|
|
@ -49,7 +49,7 @@ struct accumulate_extent
|
|||
auto size = feat->num_geometries();
|
||||
for (std::size_t i = 0; i < size; ++i)
|
||||
{
|
||||
geometry_type & geom = feat->get_geometry(i);
|
||||
geometry_type const& geom = feat->get_geometry(i);
|
||||
auto bbox = ::mapnik::envelope(geom);
|
||||
if ( first_ )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue