summaryrefslogtreecommitdiff
path: root/framework/source/fwe/xml/menuconfiguration.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-14 00:03:52 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-14 01:31:17 +0900
commit520891d058f9e936b9b8afb490b5a26c156008ef (patch)
tree6cb8ebad42c3504cb3e26249ba3458afb02a9922 /framework/source/fwe/xml/menuconfiguration.cxx
parent4c1c531435e1bdb151d45626648486062012cbaa (diff)
catch exception by constant reference
Diffstat (limited to 'framework/source/fwe/xml/menuconfiguration.cxx')
-rw-r--r--framework/source/fwe/xml/menuconfiguration.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/fwe/xml/menuconfiguration.cxx b/framework/source/fwe/xml/menuconfiguration.cxx
index a91d78e40c0d..966b774876cc 100644
--- a/framework/source/fwe/xml/menuconfiguration.cxx
+++ b/framework/source/fwe/xml/menuconfiguration.cxx
@@ -102,11 +102,11 @@ throw ( WrappedTargetException )
xParser->parseStream( aInputSource );
return Reference< XIndexAccess >( xItemContainer, UNO_QUERY );
}
- catch ( RuntimeException& e )
+ catch ( const RuntimeException& e )
{
throw WrappedTargetException( e.Message, Reference< XInterface >(), Any() );
}
- catch( SAXException& e )
+ catch( const SAXException& e )
{
SAXException aWrappedSAXException;
@@ -115,7 +115,7 @@ throw ( WrappedTargetException )
else
throw WrappedTargetException( aWrappedSAXException.Message, Reference< XInterface >(), Any() );
}
- catch( ::com::sun::star::io::IOException& e )
+ catch( const ::com::sun::star::io::IOException& e )
{
throw WrappedTargetException( e.Message, Reference< XInterface >(), Any() );
}
@@ -152,15 +152,15 @@ throw ( WrappedTargetException )
OWriteMenuDocumentHandler aWriteMenuDocumentHandler( rMenuBarConfiguration, xWriter );
aWriteMenuDocumentHandler.WriteMenuDocument();
}
- catch ( RuntimeException& e )
+ catch ( const RuntimeException& e )
{
throw WrappedTargetException( e.Message, Reference< XInterface >(), Any() );
}
- catch ( SAXException& e )
+ catch ( const SAXException& e )
{
throw WrappedTargetException( e.Message, Reference< XInterface >(), Any() );
}
- catch ( ::com::sun::star::io::IOException& e )
+ catch ( const ::com::sun::star::io::IOException& e )
{
throw WrappedTargetException( e.Message, Reference< XInterface >(), Any() );
}