diff options
Diffstat (limited to 'oox/source/ole/vbamodule.cxx')
-rw-r--r-- | oox/source/ole/vbamodule.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx index 45a21df0e6f8..cbd9744b03d0 100644 --- a/oox/source/ole/vbamodule.cxx +++ b/oox/source/ole/vbamodule.cxx @@ -308,7 +308,7 @@ void VbaModule::createModule( const OUString& rVBASourceCode, { aModuleInfo.ModuleObject.set( rxDocObjectNA->getByName( maName ), UNO_QUERY ); } - catch( Exception& ) + catch(const Exception& ) { } break; @@ -342,7 +342,7 @@ void VbaModule::createModule( const OUString& rVBASourceCode, Reference< XVBAModuleInfo > xVBAModuleInfo( rxBasicLib, UNO_QUERY_THROW ); xVBAModuleInfo->insertModuleInfo( maName, aModuleInfo ); } - catch( Exception& ) + catch(const Exception& ) { } @@ -351,7 +351,7 @@ void VbaModule::createModule( const OUString& rVBASourceCode, { rxBasicLib->insertByName( maName, Any( aSourceCode.makeStringAndClear() ) ); } - catch( Exception& ) + catch(const Exception& ) { OSL_FAIL( "VbaModule::createModule - cannot insert module into library" ); } |