summaryrefslogtreecommitdiffstats
path: root/filter/source/msfilter/msoleexp.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-11 18:51:50 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-12 10:05:25 +0900
commit75b835c8cd2953c5bc0f23df300ee553f94eb28d (patch)
tree753bf89fdc56cd3df9842adc7962b0965090cf44 /filter/source/msfilter/msoleexp.cxx
parentfix automatic download of dlls on windows (diff)
downloadcore-75b835c8cd2953c5bc0f23df300ee553f94eb28d.tar.gz
core-75b835c8cd2953c5bc0f23df300ee553f94eb28d.zip
catch exception by constant reference
Diffstat (limited to 'filter/source/msfilter/msoleexp.cxx')
-rw-r--r--filter/source/msfilter/msoleexp.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/filter/source/msfilter/msoleexp.cxx b/filter/source/msfilter/msoleexp.cxx
index e69ae3be3d3b..9915f1420139 100644
--- a/filter/source/msfilter/msoleexp.cxx
+++ b/filter/source/msfilter/msoleexp.cxx
@@ -117,7 +117,7 @@ sal_Bool UseOldMSExport()
return bResult;
}
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}
@@ -215,13 +215,13 @@ void SvxMSExportOLEObjects::ExportOLEObject( svt::EmbeddedObjectRef& rObj, SvSto
{
xStor->storeToURL( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:stream" )), aSeq );
}
- catch( uno::Exception& ) {} // #TODO really handle exceptions - interactionalhandler etc. ?
+ catch( const uno::Exception& ) {} // #TODO really handle exceptions - interactionalhandler etc. ?
SotStorageRef xOLEStor = new SotStorage( pStream, sal_True );
xOLEStor->CopyTo( &rDestStg );
rDestStg.Commit();
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
// TODO/LATER: Error handling
OSL_FAIL( "The object could not be exported!" );
@@ -257,13 +257,13 @@ void SvxMSExportOLEObjects::ExportOLEObject( svt::EmbeddedObjectRef& rObj, SvSto
// extension stream
aSize = rObj->getVisualAreaSize( embed::Aspects::MSOLE_CONTENT );
}
- catch( embed::NoVisualAreaSizeException& )
+ catch( const embed::NoVisualAreaSizeException& )
{
OSL_FAIL( "Could not get visual area size!\n" );
aSize.Width = 5000;
aSize.Height = 5000;
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
OSL_FAIL( "Unexpected exception while getting visual area size!\n" );
aSize.Width = 5000;
@@ -311,7 +311,7 @@ void SvxMSExportOLEObjects::ExportOLEObject( svt::EmbeddedObjectRef& rObj, SvSto
uno::Reference < frame::XStorable > xStor( rObj->getComponent(), uno::UNO_QUERY );
xStor->storeToURL( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:stream" )), aSeq );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
// TODO/LATER: Error handling
OSL_FAIL( "The object could not be exported!" );
@@ -339,7 +339,7 @@ void SvxMSExportOLEObjects::ExportOLEObject( svt::EmbeddedObjectRef& rObj, SvSto
{
xPers->storeToEntry( xStor, aTempName, aEmptySeq, aEmptySeq );
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{}
SotStorageRef xOLEStor = SotStorage::OpenOLEStorage( xStor, aTempName, STREAM_STD_READ );