summaryrefslogtreecommitdiffstats
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-04-16 08:48:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-04-16 15:21:37 +0100
commit3f7048446185b59cd5ddf04a4f08ab10481e3ac7 (patch)
tree53a0244b954e7b353e19b0e1a7e9206a12b2571c /oox
parenthard to tell what side-effects dbtools::StatementComposer::getQuery might have (diff)
downloadcore-3f7048446185b59cd5ddf04a4f08ab10481e3ac7.tar.gz
core-3f7048446185b59cd5ddf04a4f08ab10481e3ac7.zip
catch by const reference
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ole/vbamodule.cxx8
1 files changed, 4 insertions, 4 deletions
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" );
}