Kaydet (Commit) 4911135f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

SbModule::Run return value is unused

Change-Id: I7cd697d944dc0efbd35b852fc553ba85bc88c15e
üst 9a9dd94c
...@@ -1066,12 +1066,11 @@ void SbModule::SetVBACompat( bool bCompat ) ...@@ -1066,12 +1066,11 @@ void SbModule::SetVBACompat( bool bCompat )
} }
// Run a Basic-subprogram // 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 ); SAL_INFO("basic","About to run " << OUStringToOString( pMeth->GetName(), RTL_TEXTENCODING_UTF8 ).getStr() << ", vba compatmode is " << mbVBACompat );
static sal_uInt16 nMaxCallLevel = 0; static sal_uInt16 nMaxCallLevel = 0;
sal_uInt16 nRes = 0;
bool bDelInst = ( GetSbData()->pInst == NULL ); bool bDelInst = ( GetSbData()->pInst == NULL );
bool bQuit = false; bool bQuit = false;
StarBASICRef xBasic; StarBASICRef xBasic;
...@@ -1195,7 +1194,6 @@ sal_uInt16 SbModule::Run( SbMethod* pMeth ) ...@@ -1195,7 +1194,6 @@ sal_uInt16 SbModule::Run( SbMethod* pMeth )
Application::Yield(); Application::Yield();
} }
nRes = sal_True;
GetSbData()->pInst->pRun = pRt->pNext; GetSbData()->pInst->pRun = pRt->pNext;
GetSbData()->pInst->nCallLvl--; // Call-Level down again GetSbData()->pInst->nCallLvl--; // Call-Level down again
...@@ -1269,8 +1267,6 @@ sal_uInt16 SbModule::Run( SbMethod* pMeth ) ...@@ -1269,8 +1267,6 @@ sal_uInt16 SbModule::Run( SbMethod* pMeth )
{ {
Application::PostUserEvent( LINK( &AsyncQuitHandler::instance(), AsyncQuitHandler, OnAsyncQuit ), NULL ); Application::PostUserEvent( LINK( &AsyncQuitHandler::instance(), AsyncQuitHandler, OnAsyncQuit ), NULL );
} }
return nRes;
} }
// Execute of the init method of a module after the loading // Execute of the init method of a module after the loading
......
...@@ -78,7 +78,7 @@ protected: ...@@ -78,7 +78,7 @@ protected:
SbProcedureProperty* GetProcedureProperty( const OUString&, SbxDataType ); SbProcedureProperty* GetProcedureProperty( const OUString&, SbxDataType );
SbIfaceMapperMethod* GetIfaceMapperMethod( const OUString&, SbMethod* ); SbIfaceMapperMethod* GetIfaceMapperMethod( const OUString&, SbMethod* );
void EndDefinitions( bool=false ); void EndDefinitions( bool=false );
sal_uInt16 Run( SbMethod* ); void Run( SbMethod* );
void RunInit(); void RunInit();
void ClearPrivateVars(); void ClearPrivateVars();
void ClearVarsDependingOnDeletedBasic( StarBASIC* pDeletedBasic ); void ClearVarsDependingOnDeletedBasic( StarBASIC* pDeletedBasic );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment