summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlwrap.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-11-04 02:02:20 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-11-04 02:03:19 +0900
commit225cbd10f7fcb285c20c18c68fcae3a2cbfe9711 (patch)
treebbaaec04a04872814f4755420443edd1ee6927dd /sc/source/filter/xml/xmlwrap.cxx
parent97b5ed250d531382564d64521f8b803c92f775a0 (diff)
catch exception by const reference
Diffstat (limited to 'sc/source/filter/xml/xmlwrap.cxx')
-rw-r--r--sc/source/filter/xml/xmlwrap.cxx8
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" );