From 520891d058f9e936b9b8afb490b5a26c156008ef Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 14 Dec 2011 00:03:52 +0900 Subject: catch exception by constant reference --- framework/source/xml/imagesconfiguration.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'framework/source/xml') diff --git a/framework/source/xml/imagesconfiguration.cxx b/framework/source/xml/imagesconfiguration.cxx index 28e187b094f1..738d6f2930eb 100644 --- a/framework/source/xml/imagesconfiguration.cxx +++ b/framework/source/xml/imagesconfiguration.cxx @@ -104,15 +104,15 @@ sal_Bool ImagesConfiguration::LoadImages( xParser->parseStream( aInputSource ); return sal_True; } - catch ( RuntimeException& ) + catch ( const RuntimeException& ) { return sal_False; } - catch( SAXException& ) + catch( const SAXException& ) { return sal_False; } - catch( ::com::sun::star::io::IOException& ) + catch( const ::com::sun::star::io::IOException& ) { return sal_False; } @@ -134,15 +134,15 @@ sal_Bool ImagesConfiguration::StoreImages( aWriteImagesDocumentHandler.WriteImagesDocument(); return sal_True; } - catch ( RuntimeException& ) + catch ( const RuntimeException& ) { return sal_False; } - catch ( SAXException& ) + catch ( const SAXException& ) { return sal_False; } - catch ( ::com::sun::star::io::IOException& ) + catch ( const ::com::sun::star::io::IOException& ) { return sal_False; } -- cgit