Skip to content

Commit

Permalink
msStyleSetGeomTransform() declaration: fix const correctness of trans…
Browse files Browse the repository at this point in the history
…form argument
  • Loading branch information
rouault committed Oct 12, 2023
1 parent 9b4090a commit 7daebd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mapgeomtransform.c
Expand Up @@ -32,7 +32,7 @@

extern int yyparse(parseObj *p);

void msStyleSetGeomTransform(styleObj *s, char *transform) {
void msStyleSetGeomTransform(styleObj *s, const char *transform) {
msFree(s->_geomtransform.string);
if (!transform) {
s->_geomtransform.type = MS_GEOMTRANSFORM_NONE;
Expand Down
2 changes: 1 addition & 1 deletion src/mapserver.h
Expand Up @@ -3793,7 +3793,7 @@ enum MS_GEOMTRANSFORM_TYPE {
MS_DLL_EXPORT int msDrawTransformedShape(mapObj *map, imageObj *image,
shapeObj *shape, styleObj *style,
double scalefactor);
MS_DLL_EXPORT void msStyleSetGeomTransform(styleObj *s, char *transform);
MS_DLL_EXPORT void msStyleSetGeomTransform(styleObj *s, const char *transform);
MS_DLL_EXPORT char *msStyleGetGeomTransform(styleObj *style);

MS_DLL_EXPORT int msGeomTransformShape(mapObj *map, layerObj *layer,
Expand Down

0 comments on commit 7daebd0

Please sign in to comment.