summaryrefslogtreecommitdiff
path: root/oox/source/ole/vbamodule.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-08-18 08:49:46 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-08-18 13:50:27 +0900
commit91f85b294b7c71223b471279060f7a07d3c9bbd0 (patch)
tree9854ff3d52c394e3d53b2b179fca53ae5e479198 /oox/source/ole/vbamodule.cxx
parentaea70b22af92ca6ed013bf6c78a6fdcae58d13cc (diff)
catch exceptions by const references
Diffstat (limited to 'oox/source/ole/vbamodule.cxx')
-rw-r--r--oox/source/ole/vbamodule.cxx6
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" );
}