Skip to content

Commit

Permalink
Make numlabels and labelLeaderObj immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Nov 30, 2019
1 parent ef4c443 commit 1712440
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mapserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,7 @@ typedef struct labelObj labelObj;
%immutable;
#endif
int numstyles;
int numlabels;
#ifdef SWIG
%mutable;
#endif
Expand All @@ -1203,10 +1204,8 @@ typedef struct labelObj labelObj;
labelObj **labels;
int maxlabels;
#endif
int numlabels; /* should be immutable */

char *name; /* should be unique within a layer */
char *title; /* used for legend labeling */
char *title; /* used for legend labelling */

#ifndef SWIG
expressionObj text;
Expand Down Expand Up @@ -1234,6 +1233,7 @@ typedef struct labelObj labelObj;
#endif /* SWIG */
int refcount;
struct layerObj *layer;
labelLeaderObj *leader;
#ifdef SWIG
%mutable;
#endif /* SWIG */
Expand All @@ -1242,7 +1242,6 @@ typedef struct labelObj labelObj;
char *keyimage;

char *group;
labelLeaderObj *leader;
};

/************************************************************************/
Expand Down

0 comments on commit 1712440

Please sign in to comment.