geometry_is_empty should only accept const&
This commit is contained in:
parent
19eaf4cfff
commit
9bd171bcd1
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue