summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-08 14:17:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-09 08:28:04 +0200
commit4763091bbecab8722a43d0ed73eafc0a1f596242 (patch)
tree095cad3f795be38a6fa64d4b4ad452619433972c /basic
parentac528503b4c172dd322841681b7aa9180a95721d (diff)
loplugin:constantparam
Change-Id: Ia9500b25602c14aadf49fe373682ae9d87a0a1a2 Reviewed-on: https://gerrit.libreoffice.org/37390 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/errobject.cxx2
-rw-r--r--basic/source/inc/runtime.hxx2
-rw-r--r--basic/source/runtime/runtime.cxx4
3 files changed, 4 insertions, 4 deletions
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;