Skip to content

Commit d6b3bb1

Browse files
committed
Make const what can be const
1 parent 80ee725 commit d6b3bb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/coastline_ring_collection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ void CoastlineRingCollection::close_rings(OutputDatabase& output, bool debug, do
384384
m_fixed_rings++;
385385

386386
CoastlineRing* e = eit->second->get();
387-
CoastlineRing* s = sit->second->get();
387+
const CoastlineRing* s = sit->second->get();
388388

389389
output.add_error_point(e->ogr_last_point(), "fixed_end_point", e->last_node_id());
390390
output.add_error_point(s->ogr_first_point(), "fixed_end_point", s->first_node_id());

src/output_database.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void OutputDatabase::add_ring(std::unique_ptr<OGRPolygon>&& polygon, osmium::obj
181181
function from the GEOS C interface to get to the reason.
182182
*/
183183
GEOSContextHandle_t contextHandle = OGRGeometry::createGEOSContext();
184-
char* r = GEOSisValidReason(polygon->exportToGEOS(contextHandle));
184+
const char* const r = GEOSisValidReason(polygon->exportToGEOS(contextHandle));
185185
std::string reason = r ? r : "";
186186
OGRGeometry::freeGEOSContext(contextHandle);
187187

0 commit comments

Comments
 (0)