summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-27 15:46:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-28 10:19:37 +0200
commit4911135f8b5b55f24f59f1b069b6ab7ac4ee1814 (patch)
tree99a973ceba0c7e506ca5cc869488e30de30212e8 /basic
parent9a9dd94c568da830d70c736cdf827a2bc48988f5 (diff)
SbModule::Run return value is unused
Change-Id: I7cd697d944dc0efbd35b852fc553ba85bc88c15e
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbxmod.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index 91fac4c74221..9990a04d5f46 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -1066,12 +1066,11 @@ void SbModule::SetVBACompat( bool bCompat )
}
// Run a Basic-subprogram
-sal_uInt16 SbModule::Run( SbMethod* pMeth )
+void SbModule::Run( SbMethod* pMeth )
{
SAL_INFO("basic","About to run " << OUStringToOString( pMeth->GetName(), RTL_TEXTENCODING_UTF8 ).getStr() << ", vba compatmode is " << mbVBACompat );
static sal_uInt16 nMaxCallLevel = 0;
- sal_uInt16 nRes = 0;
bool bDelInst = ( GetSbData()->pInst == NULL );
bool bQuit = false;
StarBASICRef xBasic;
@@ -1195,7 +1194,6 @@ sal_uInt16 SbModule::Run( SbMethod* pMeth )
Application::Yield();
}
- nRes = sal_True;
GetSbData()->pInst->pRun = pRt->pNext;
GetSbData()->pInst->nCallLvl--; // Call-Level down again
@@ -1269,8 +1267,6 @@ sal_uInt16 SbModule::Run( SbMethod* pMeth )
{
Application::PostUserEvent( LINK( &AsyncQuitHandler::instance(), AsyncQuitHandler, OnAsyncQuit ), NULL );
}
-
- return nRes;
}
// Execute of the init method of a module after the loading