geometry_is_empty should only accept const&

This commit is contained in:
Dane Springmeyer 2015-04-04 13:19:55 -04:00
parent 19eaf4cfff
commit 9bd171bcd1

View file

@ -20,8 +20,8 @@
* *
*****************************************************************************/ *****************************************************************************/
#ifndef MAPNIK_GEOMETRY_EMPTY_HPP #ifndef MAPNIK_GEOMETRY_IS_EMPTY_HPP
#define MAPNIK_GEOMETRY_EMPTY_HPP #define MAPNIK_GEOMETRY_IS_EMPTY_HPP
#include <mapnik/geometry.hpp> #include <mapnik/geometry.hpp>
@ -82,11 +82,11 @@ struct geometry_is_empty
} }
template <typename GeomType> template <typename GeomType>
inline bool is_empty(GeomType & geom) inline bool is_empty(GeomType const& geom)
{ {
return detail::geometry_is_empty()(geom); return detail::geometry_is_empty()(geom);
} }
}} }}
#endif // MAPNIK_GEOMETRY_EMPTY_HPP #endif // MAPNIK_GEOMETRY_IS_EMPTY_HPP