* don't rely on implicit size_t to bool conversions (fix MSVC compiler warning)
This commit is contained in:
artemp
2014-02-06 11:46:56 +00:00
parent bfcfb592da
commit 0cf3f28d05

View File

@@ -34,7 +34,7 @@ void LineBucket::addGeometry(pbf& geom) {
int32_t x, y;
while ((cmd = geometry.next(x, y)) != Geometry::end) {
if (cmd == Geometry::move_to) {
if (line.size()) {
if (!line.empty()) {
addGeometry(line);
line.clear();
}