cleanup usage
This commit is contained in:
parent
56174edaa8
commit
56a14368bf
2 changed files with 1 additions and 3 deletions
|
@ -75,8 +75,7 @@ struct put_property
|
|||
template <typename T0,typename T1, typename T2>
|
||||
result_type operator() (T0 & feature, T1 const& key, T2 const& val) const
|
||||
{
|
||||
mapnik::value v = boost::apply_visitor(attribute_value_visitor(tr_),val); // TODO: optimize
|
||||
feature.put_new(key, v);
|
||||
feature.put_new(key, boost::apply_visitor(attribute_value_visitor(tr_),val));
|
||||
}
|
||||
mapnik::transcoder const& tr_;
|
||||
};
|
||||
|
|
|
@ -64,7 +64,6 @@ void assign_properties(mapnik::feature_impl & feature, T const& geom, mapnik::tr
|
|||
{
|
||||
for (auto const& p : *geom.props)
|
||||
{
|
||||
//mapnik::value v = boost::apply_visitor(attribute_value_visitor(tr),std::get<1>(p));
|
||||
feature.put_new(std::get<0>(p), boost::apply_visitor(attribute_value_visitor(tr),std::get<1>(p)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue