From 4763091bbecab8722a43d0ed73eafc0a1f596242 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 8 May 2017 14:17:56 +0200 Subject: loplugin:constantparam Change-Id: Ia9500b25602c14aadf49fe373682ae9d87a0a1a2 Reviewed-on: https://gerrit.libreoffice.org/37390 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/classes/errobject.cxx | 2 +- basic/source/inc/runtime.hxx | 2 +- basic/source/runtime/runtime.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'basic') diff --git a/basic/source/classes/errobject.cxx b/basic/source/classes/errobject.cxx index d6fb2cca2866..63289c8f94d5 100644 --- a/basic/source/classes/errobject.cxx +++ b/basic/source/classes/errobject.cxx @@ -76,7 +76,7 @@ ErrObject::getNumber() void SAL_CALL ErrObject::setNumber( ::sal_Int32 _number ) { - GetSbData()->pInst->setErrorVB( _number, OUString() ); + GetSbData()->pInst->setErrorVB( _number ); OUString _description = GetSbData()->pInst->GetErrorMsg(); setData( uno::Any( _number ), uno::Any(), uno::Any( _description ), uno::Any(), uno::Any() ); } diff --git a/basic/source/inc/runtime.hxx b/basic/source/inc/runtime.hxx index d4e5b25c4353..f80d07322690 100644 --- a/basic/source/inc/runtime.hxx +++ b/basic/source/inc/runtime.hxx @@ -167,7 +167,7 @@ public: void Error( SbError ); // trappable Error void Error( SbError, const OUString& rMsg ); // trappable Error with message void ErrorVB( sal_Int32 nVBNumber, const OUString& rMsg ); - void setErrorVB( sal_Int32 nVBNumber, const OUString& rMsg ); + void setErrorVB( sal_Int32 nVBNumber ); void FatalError( SbError ); // non-trappable Error void FatalError( SbError, const OUString& ); // non-trappable Error void Abort(); // with current error code diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index 0e88e57ec9ec..526c51054513 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -491,14 +491,14 @@ void SbiInstance::ErrorVB( sal_Int32 nVBNumber, const OUString& rMsg ) } } -void SbiInstance::setErrorVB( sal_Int32 nVBNumber, const OUString& rMsg ) +void SbiInstance::setErrorVB( sal_Int32 nVBNumber ) { SbError n = StarBASIC::GetSfxFromVBError( static_cast< sal_uInt16 >( nVBNumber ) ); if( !n ) { n = nVBNumber; // force orig number, probably should have a specific table of vb ( localized ) errors } - aErrorMsg = rMsg; + aErrorMsg = OUString(); SbiRuntime::translateErrorToVba( n, aErrorMsg ); nErr = n; -- cgit