summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hwpeq.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-17 11:04:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-18 08:19:46 +0200
commit3ccaa4d9e9e18555e86e111259a4908413d36718 (patch)
tree0ba4e0d2706f1c17a4a33ac6b88674416fe4e2be /hwpfilter/source/hwpeq.cxx
parent871f1f727f0763ffec510757933f1acf22485a59 (diff)
loplugin:constparams in scaddins,hwpfilter
Change-Id: I91b3559b9c3f5d8837d182cf9406fad9aeee78b3 Reviewed-on: https://gerrit.libreoffice.org/40049 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter/source/hwpeq.cxx')
-rw-r--r--hwpfilter/source/hwpeq.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/hwpeq.cxx b/hwpfilter/source/hwpeq.cxx
index 519a4457dc03..5be9ad7c2603 100644
--- a/hwpfilter/source/hwpeq.cxx
+++ b/hwpfilter/source/hwpeq.cxx
@@ -388,7 +388,7 @@ static const hwpeq eq_tbl[] = {
{ "zeta", nullptr, 0, EQ_CASE }
};
-static const hwpeq *lookup_eqn(char *str)
+static const hwpeq *lookup_eqn(char const *str)
{
static const int eqCount = SAL_N_ELEMENTS(eq_tbl);
int l = 0, r = eqCount;
@@ -459,7 +459,7 @@ struct eq_stack {
istream *strm;
eq_stack() { strm = nullptr; };
- bool state(istream *s) {
+ bool state(istream const *s) {
if( strm != s) { white = nullptr; token = nullptr; }
return token.length() != 0;
}
@@ -467,7 +467,7 @@ struct eq_stack {
static eq_stack *stk = nullptr;
-void push_token(MzString &white, MzString &token, istream *strm)
+void push_token(MzString const &white, MzString const &token, istream *strm)
{
// one time stack
assert(stk->token.length() == 0);
@@ -749,7 +749,7 @@ static char eq2ltxconv(MzString& sstr, istream *strm, const char *sentinel)
return token[0];
}
-void eq2latex(MzString& outs, char *s)
+void eq2latex(MzString& outs, char const *s)
{
assert(s);
if( stk == nullptr )