summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-08 10:29:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-09 08:10:24 +0200
commit1de7e818a417a412678013c100b4bf73fd8858ac (patch)
treeab960efb3e261fbc0672df162bae1f1225fd4455 /soltools
parent56940b766e5d52cb1c17b4250e4c7e2c375b7b65 (diff)
loplugin:constfields in smoketest..sot
Change-Id: I59ceda8ff85cc7b348882a6e1c62491b74297801 Reviewed-on: https://gerrit.libreoffice.org/61549 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'soltools')
-rw-r--r--soltools/cpp/_eval.c6
-rw-r--r--soltools/cpp/_lex.c2
-rw-r--r--soltools/cpp/_nlist.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/soltools/cpp/_eval.c b/soltools/cpp/_eval.c
index 48526b76e94b..aabf212a8c31 100644
--- a/soltools/cpp/_eval.c
+++ b/soltools/cpp/_eval.c
@@ -43,9 +43,9 @@ struct value
/* operator priority, arity, and conversion type, indexed by tokentype */
struct pri
{
- char pri;
- char arity;
- char ctype;
+ char const pri;
+ char const arity;
+ char const ctype;
};
static struct pri priority[] =
diff --git a/soltools/cpp/_lex.c b/soltools/cpp/_lex.c
index 70c808b87187..466a16078d9d 100644
--- a/soltools/cpp/_lex.c
+++ b/soltools/cpp/_lex.c
@@ -68,7 +68,7 @@ struct fsm
{
int state; /* if in this state */
uchar ch[4]; /* and see one of these characters */
- int nextstate; /* enter this state if +ve */
+ int const nextstate; /* enter this state if +ve */
};
static /*const*/ struct fsm fsm[] = {
diff --git a/soltools/cpp/_nlist.c b/soltools/cpp/_nlist.c
index 20118f363b83..b365cba5d7b3 100644
--- a/soltools/cpp/_nlist.c
+++ b/soltools/cpp/_nlist.c
@@ -38,9 +38,9 @@ static Nlist *nlist[NLSIZE];
struct kwtab
{
- char *kw;
- int val;
- int flag;
+ char * const kw;
+ int const val;
+ int const flag;
};
static struct kwtab kwtab[] =