Browse files

Adjust to new statistics-pointer code

  • Loading branch information...
1 parent c637032 commit e38e56116a4ab5e9e9c1f89f368a7c498c333eb9 @tmcw tmcw committed Feb 2, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/ds_emitter.hpp
View
5 src/ds_emitter.hpp
@@ -155,9 +155,10 @@ static void datasource_statistics(Local<Object> stats_obj, mapnik::datasource_pt
{
try {
mapnik::statistics_ptr stats = ds->get_statistics();
- std::map<std::string, mapnik::parameters>::iterator it;
+ mapnik::statistics_ptr_iterator it(stats->begin(), stats);
+ mapnik::statistics_ptr_iterator end(stats->end(), stats);
- for (it = stats->begin(); it != stats->end(); it++) {
+ for ( ; it != end; it++) {
Local<Object> field = Object::New();
mapnik::parameters::const_iterator k = it->second.begin();
for (; k != it->second.end(); ++k) {

0 comments on commit e38e561

Please sign in to comment.