From 8c31daedf9e8f86c3af7f1b595fa50ede8cc487c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 13 Apr 2011 09:59:27 +0100 Subject: [PATCH] catch by const reference --- lotuswordpro/source/filter/schxmlwrapper.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lotuswordpro/source/filter/schxmlwrapper.cxx b/lotuswordpro/source/filter/schxmlwrapper.cxx index 82ca112d90a6..ace130409adf 100644 --- a/lotuswordpro/source/filter/schxmlwrapper.cxx +++ b/lotuswordpro/source/filter/schxmlwrapper.cxx @@ -234,27 +234,27 @@ sal_Int32 SchXMLWrapper::ImportStream( } } } - catch( xml::sax::SAXParseException&) + catch(const xml::sax::SAXParseException&) { if( bEncrypted ) return ERRCODE_SFX_WRONGPASSWORD; return ERRCODE_SFX_GENERAL; } - catch( xml::sax::SAXException&) + catch(const xml::sax::SAXException&) { if( bEncrypted ) return ERRCODE_SFX_WRONGPASSWORD; return ERRCODE_SFX_GENERAL; } - catch( io::IOException&) + catch(const io::IOException&) { return ERRCODE_SFX_GENERAL; } - catch( packages::zip::ZipIOException& ) + catch(const packages::zip::ZipIOException&) { return ERRCODE_IO_BROKENPACKAGE; } - catch( uno::Exception&) + catch(const uno::Exception&) { return ERRCODE_SFX_GENERAL; } @@ -388,7 +388,7 @@ sal_Bool SchXMLWrapper::ExportStream( rOutputStream->Commit(); } } - catch( uno::Exception ) + catch(const uno::Exception&) { } @@ -481,7 +481,7 @@ sal_Bool SchXMLWrapper::Export() // graphics resolver has to be destroyed this way! SvXMLGraphicHelper::Destroy( pGraphicHelper ); } - catch( uno::Exception) + catch(const uno::Exception&) { }