diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-26 03:38:13 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-26 03:38:50 +0900 |
commit | 5451e9c702afb7c570662c740b33f2481abb7cb1 (patch) | |
tree | ef491adee50b35a977830dc9431eb308434cce4e /starmath | |
parent | bf2857d88af137ba15939d81970be92b0310c915 (diff) |
catch exception by constant reference
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlimport.cxx | 5 | ||||
-rw-r--r-- | starmath/source/smdetect.cxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 92901276eb8c..4a7e1b7706d2 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -348,7 +348,7 @@ sal_uLong SmXMLImportWrapper::ReadThroughComponent( if ( bEncrypted ) nError = ERRCODE_SFX_WRONGPASSWORD; } - catch( xml::sax::SAXException& r ) + catch( const xml::sax::SAXException& r ) { packages::zip::ZipIOException aBrokenPackage; if ( r.WrappedException >>= aBrokenPackage ) @@ -3004,9 +3004,8 @@ void SmXMLImport::SetConfigurationSettings(const Sequence<PropertyValue>& aConfP if ( xInfo->hasPropertyByName( pValues->Name ) ) xProps->setPropertyValue( pValues->Name, pValues->Value ); } - catch (beans::PropertyVetoException &e) + catch (const beans::PropertyVetoException &) { - (void) e; // dealing with read-only properties here. Nothing to do... } catch( Exception& ) diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx index c971a1b92c3d..3920a7272e83 100644 --- a/starmath/source/smdetect.cxx +++ b/starmath/source/smdetect.cxx @@ -239,7 +239,7 @@ SmFilterDetect::~SmFilterDetect() aTmpFilterName = pFilter->GetName(); aTypeName = SfxFilter::GetTypeFromStorage( xStorage, pFilter ? pFilter->IsAllowedAsTemplate() : sal_False, &aTmpFilterName ); } - catch( lang::WrappedTargetException& aWrap ) + catch( const lang::WrappedTargetException& aWrap ) { packages::zip::ZipIOException aZipException; |