From 3f7048446185b59cd5ddf04a4f08ab10481e3ac7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 16 Apr 2012 08:48:53 +0100 Subject: catch by const reference --- oox/source/ole/vbamodule.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'oox') diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx index d5c1db3e8708..dab710950034 100644 --- a/oox/source/ole/vbamodule.cxx +++ b/oox/source/ole/vbamodule.cxx @@ -277,7 +277,7 @@ OUString VbaModule::readSourceCode( StorageBase& rVbaStrg, const Reference< XNam KeyEvent aKeyEvent = ooo::vba::parseKeyEvent( sApiKey ); ooo::vba::applyShortCutKeyBinding( mxDocModel, aKeyEvent, sProc ); } - catch( Exception& ) + catch (const Exception&) { } } @@ -393,7 +393,7 @@ void VbaModule::createModule( const OUString& rVBASourceCode, { aModuleInfo.ModuleObject.set( rxDocObjectNA->getByName( maName ), UNO_QUERY ); } - catch(const Exception& ) + catch (const Exception&) { } break; @@ -427,7 +427,7 @@ void VbaModule::createModule( const OUString& rVBASourceCode, Reference< XVBAModuleInfo > xVBAModuleInfo( rxBasicLib, UNO_QUERY_THROW ); xVBAModuleInfo->insertModuleInfo( maName, aModuleInfo ); } - catch(const Exception& ) + catch (const Exception&) { } @@ -436,7 +436,7 @@ void VbaModule::createModule( const OUString& rVBASourceCode, { rxBasicLib->insertByName( maName, Any( aSourceCode.makeStringAndClear() ) ); } - catch(const Exception& ) + catch (const Exception&) { OSL_FAIL( "VbaModule::createModule - cannot insert module into library" ); } -- cgit v1.2.3