Skip to content

Commit

Permalink
vtk: use const char pointer instead of char*
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Mar 12, 2024
1 parent 8016fb2 commit 46f961a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/capi/sfcgal_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ sfcgal_geometry_as_wkb(const sfcgal_geometry_t *pgeom, char **buffer,
}

extern "C" void
sfcgal_geometry_as_vtk(const sfcgal_geometry_t *pgeom, char *filename)
sfcgal_geometry_as_vtk(const sfcgal_geometry_t *pgeom, const char *filename)
{
SFCGAL_GEOMETRY_CONVERT_CATCH_TO_ERROR_NO_RET(
io::vtk(*reinterpret_cast<const SFCGAL::Geometry *>(pgeom), filename);)
Expand Down
2 changes: 1 addition & 1 deletion src/capi/sfcgal_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ sfcgal_geometry_as_wkb(const sfcgal_geometry_t *, char **buffer, size_t *len);
* @ingroup capi
*/
SFCGAL_API void
sfcgal_geometry_as_vtk(const sfcgal_geometry_t *, char *filename);
sfcgal_geometry_as_vtk(const sfcgal_geometry_t *, const char *filename);

/**
* Creates an empty point
Expand Down

0 comments on commit 46f961a

Please sign in to comment.