c++ format

This commit is contained in:
artemp 2016-07-11 10:44:18 +01:00
parent 359a3a845a
commit 033c54617c

View file

@ -32,25 +32,25 @@ namespace detail {
struct geometry_remove_empty struct geometry_remove_empty
{ {
mapnik::geometry::multi_line_string<double> operator() (mapnik::geometry::multi_line_string<double> const & geom) const mapnik::geometry::multi_line_string<double> operator() (mapnik::geometry::multi_line_string<double> const& geom) const
{ {
return remove_empty(geom); return remove_empty(geom);
} }
mapnik::geometry::multi_polygon<double> operator() (mapnik::geometry::multi_polygon<double> const & geom) const mapnik::geometry::multi_polygon<double> operator() (mapnik::geometry::multi_polygon<double> const& geom) const
{ {
return remove_empty(geom); return remove_empty(geom);
} }
template <typename T> template <typename T>
T operator() (T const & geom) const T operator() (T const& geom) const
{ {
return geom; return geom;
} }
private: private:
template <typename T> template <typename T>
T remove_empty(T const & geom) const T remove_empty(T const& geom) const
{ {
T new_geom; T new_geom;
for (auto const & g : geom) for (auto const & g : geom)