From 6299c8cae923198c55d47320fa8a89bbcd5b0f2b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 2 Nov 2021 14:32:10 +0200 Subject: loplugin:constparams Change-Id: Iebeb531fad5cc819b536788925cf8508737198b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124599 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/comp/exprtree.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic') 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(p) ); + SbiTokenizer tokens( *static_cast(p) ); // Urk the Next() / Peek() semantics are... weird tokens.Next(); if ( tokens.Peek() == ASSIGN ) -- cgit