diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-01-22 17:09:46 +0900 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-01-22 09:23:35 +0000 |
commit | b109ff85a5b777d5d0e6b2762798d54830112d10 (patch) | |
tree | 9b3727d2d6960215c67c7dd48e11198027379b2a /starmath | |
parent | cea94bd3cfd5d92696a57ef309b82a897762a3f5 (diff) |
starmath: Catch exception by const ref
Change-Id: I8a4ef4041e02b5ce76f695be170f2b8e5d29a28f
Reviewed-on: https://gerrit.libreoffice.org/21700
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlexport.cxx | 2 | ||||
-rw-r--r-- | starmath/source/mathmlimport.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index 83f6b2996c5b..9175e4d4b947 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -322,7 +322,7 @@ bool SmXMLExportWrapper::WriteThroughComponent( xStream = xStorage->openStreamElement( sStreamName, embed::ElementModes::READWRITE | embed::ElementModes::TRUNCATE ); } - catch ( uno::Exception& rEx ) + catch ( const uno::Exception& rEx ) { SAL_WARN("starmath", "Can't create output stream in package: " << rEx.Message ); return false; diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index a03f1f4ee00b..ca557ae94748 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -2978,7 +2978,7 @@ void SmXMLImport::SetConfigurationSettings(const Sequence<PropertyValue>& aConfP { // dealing with read-only properties here. Nothing to do... } - catch( Exception& rEx) + catch (const Exception& rEx) { SAL_WARN("starmath", "SmXMLImport::SetConfigurationSettings: Exception: " << rEx.Message ); } |