Skip to content

Commit f0b7a3f

Browse files
committed
Cleanup: Use .empty() instead of comparing to empty string
1 parent f8c78ae commit f0b7a3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gen/osm2pgsql-gen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ tile_extent get_extent_from_db(pg_conn_t const &db_connection,
163163
auto const geom_column = params.get_string("geom_column", "geom");
164164
auto const raster_column = params.get_string("raster_column", "");
165165

166-
bool const is_raster = raster_column != "";
166+
bool const is_raster = !raster_column.empty();
167167

168168
return get_extent_from_db(db_connection, schema, table,
169169
is_raster ? raster_column : geom_column,

0 commit comments

Comments
 (0)