[Libreoffice-commits] core.git: starmath/source

Takeshi Abe tabe at fixedpoint.jp
Fri Jan 22 01:24:10 PST 2016


 starmath/source/mathmlexport.cxx |    2 +-
 starmath/source/mathmlimport.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b109ff85a5b777d5d0e6b2762798d54830112d10
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Fri Jan 22 17:09:46 2016 +0900

    starmath: Catch exception by const ref
    
    Change-Id: I8a4ef4041e02b5ce76f695be170f2b8e5d29a28f
    Reviewed-on: https://gerrit.libreoffice.org/21700
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 83f6b29..9175e4d 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 a03f1f4..ca557ae 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 );
                     }


More information about the Libreoffice-commits mailing list