diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-02 14:32:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-03 07:54:12 +0100 |
commit | 6299c8cae923198c55d47320fa8a89bbcd5b0f2b (patch) | |
tree | 019ed8f1d754f92fb72c9ae4639ab671bae97018 /basic | |
parent | de39e35b21134e9a0f946aabe4859b16a62b248d (diff) |
loplugin:constparams
Change-Id: Iebeb531fad5cc819b536788925cf8508737198b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124599
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/exprtree.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx index a18a740447ec..6b101ce81ca6 100644 --- a/basic/source/comp/exprtree.cxx +++ b/basic/source/comp/exprtree.cxx @@ -74,7 +74,7 @@ SbiExpression::~SbiExpression() { } // Are there parameters without brackets following? This may be a number, // a string, a symbol or also a comma (if the 1st parameter is missing) -static bool DoParametersFollow( SbiParser* p, SbiExprType eCurExpr, SbiToken eTok ) +static bool DoParametersFollow( const SbiParser* p, SbiExprType eCurExpr, SbiToken eTok ) { if( eTok == LPAREN ) { @@ -92,7 +92,7 @@ static bool DoParametersFollow( SbiParser* p, SbiExprType eCurExpr, SbiToken eTo } else // check for default params with reserved names ( e.g. names of tokens ) { - SbiTokenizer tokens( *static_cast<SbiTokenizer*>(p) ); + SbiTokenizer tokens( *static_cast<const SbiTokenizer*>(p) ); // Urk the Next() / Peek() semantics are... weird tokens.Next(); if ( tokens.Peek() == ASSIGN ) |