diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-11-04 02:02:20 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-11-04 02:03:19 +0900 |
commit | 225cbd10f7fcb285c20c18c68fcae3a2cbfe9711 (patch) | |
tree | bbaaec04a04872814f4755420443edd1ee6927dd /sc/source/filter/xml/xmlwrap.cxx | |
parent | 97b5ed250d531382564d64521f8b803c92f775a0 (diff) |
catch exception by const reference
Diffstat (limited to 'sc/source/filter/xml/xmlwrap.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 6c8fd7e5e9c3..ba9d4fc60480 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -245,7 +245,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe } } } - catch( xml::sax::SAXException& r ) + catch( const xml::sax::SAXException& r ) { packages::zip::ZipIOException aBrokenPackage; if ( r.WrappedException >>= aBrokenPackage ) @@ -265,7 +265,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe nReturn = SCERR_IMPORT_FORMAT; } } - catch( packages::zip::ZipIOException& r ) + catch( const packages::zip::ZipIOException& r ) { #if OSL_DEBUG_LEVEL > 0 ByteString aError( "Zip exception catched while importing:\n" ); @@ -276,7 +276,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe nReturn = ERRCODE_IO_BROKENPACKAGE; } - catch( io::IOException& r ) + catch( const io::IOException& r ) { #if OSL_DEBUG_LEVEL > 0 ByteString aError( "IO exception catched while importing:\n" ); @@ -287,7 +287,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe nReturn = SCERR_IMPORT_OPEN; } - catch( uno::Exception& r ) + catch( const uno::Exception& r ) { #if OSL_DEBUG_LEVEL > 0 ByteString aError( "uno exception catched while importing:\n" ); |