basic/source/classes/sb.cxx |    5 -----
 include/basic/sbstar.hxx    |    3 +--
 2 files changed, 1 insertion(+), 7 deletions(-)

New commits:
commit 30483a6e0642c287d95e8d617e1a3da26e29f9f2
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Feb 3 07:16:27 2022 +0100
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Thu Feb 3 08:16:03 2022 +0100

    Use default argument
    
    Change-Id: I44e9c2e5de2c041f2839b14a057e1b88fd6ea01f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129337
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index c38a6c04989b..5c99408847b6 100644
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -1682,11 +1682,6 @@ bool StarBASIC::RTError( ErrCode code, const OUString& 
rMsg, sal_Int32 l, sal_In
     }
 }
 
-void StarBASIC::Error( ErrCode n )
-{
-    Error( n, OUString() );
-}
-
 void StarBASIC::Error( ErrCode n, const OUString& rMsg )
 {
     if( GetSbData()->pInst )
diff --git a/include/basic/sbstar.hxx b/include/basic/sbstar.hxx
index 08040a4d5510..1629ab16c774 100644
--- a/include/basic/sbstar.hxx
+++ b/include/basic/sbstar.hxx
@@ -87,8 +87,7 @@ public:
     SbModule*       MakeModule( const OUString& rName, const OUString& rSrc );
     SbModule*       MakeModule( const OUString& rName, const 
css::script::ModuleInfo& mInfo, const OUString& rSrc );
     static void     Stop();
-    static void     Error( ErrCode );
-    static void     Error( ErrCode, const OUString& rMsg );
+    static void     Error( ErrCode, const OUString& rMsg = {} );
     static void     FatalError( ErrCode );
     static void     FatalError( ErrCode, const OUString& rMsg );
     static bool     IsRunning();

Reply via email to