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

Takeshi Abe tabe at fixedpoint.jp
Wed Jun 14 03:46:14 UTC 2017


 starmath/source/document.cxx     |    2 +-
 starmath/source/mathmlimport.cxx |   12 ++++++------
 starmath/source/mathmlimport.hxx |    6 +++---
 3 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 06ea26ce3ff3d809ca7e318abdabc633910f2946
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Tue Jun 13 20:01:02 2017 +0900

    starmath: Use sal_uInt32 for ERRCODE instead of sal_uLong
    
    Change-Id: I9fab0cdc29cf10551b31619cbcbf7f304eeb3b69
    Reviewed-on: https://gerrit.libreoffice.org/38729
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>

diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 90720004064e..0f43b42072dc 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -748,7 +748,7 @@ bool SmDocShell::Load( SfxMedium& rMedium )
             // is this a fabulous math package ?
             Reference<css::frame::XModel> xModel(GetModel());
             SmXMLImportWrapper aEquation(xModel);
-            sal_uLong nError = aEquation.Import(rMedium);
+            auto nError = aEquation.Import(rMedium);
             bRet = 0 == nError;
             SetError(nError);
         }
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index b97ec1be70f6..f426f42a76fe 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -97,9 +97,9 @@ SmNode* popOrZero(SmNodeStack& rStack)
 
 }
 
-sal_uLong SmXMLImportWrapper::Import(SfxMedium &rMedium)
+sal_uInt32 SmXMLImportWrapper::Import(SfxMedium &rMedium)
 {
-    sal_uLong nError = ERRCODE_SFX_DOLOADFAILED;
+    sal_uInt32 nError = ERRCODE_SFX_DOLOADFAILED;
 
     uno::Reference<uno::XComponentContext> xContext( comphelper::getProcessComponentContext() );
 
@@ -200,7 +200,7 @@ sal_uLong SmXMLImportWrapper::Import(SfxMedium &rMedium)
         if (xStatusIndicator.is())
             xStatusIndicator->setValue(nSteps++);
 
-        sal_uLong nWarn = ReadThroughComponent(
+        auto nWarn = ReadThroughComponent(
             rMedium.GetStorage(), xModelComp, "meta.xml", "Meta.xml",
             xContext, xInfoSet,
                 (bOASIS ? "com.sun.star.comp.Math.XMLOasisMetaImporter"
@@ -251,7 +251,7 @@ sal_uLong SmXMLImportWrapper::Import(SfxMedium &rMedium)
 
 
 /// read a component (file + filter version)
-sal_uLong SmXMLImportWrapper::ReadThroughComponent(
+sal_uInt32 SmXMLImportWrapper::ReadThroughComponent(
     const Reference<io::XInputStream>& xInputStream,
     const Reference<XComponent>& xModelComponent,
     Reference<uno::XComponentContext> & rxContext,
@@ -259,7 +259,7 @@ sal_uLong SmXMLImportWrapper::ReadThroughComponent(
     const sal_Char* pFilterName,
     bool bEncrypted )
 {
-    sal_uLong nError = ERRCODE_SFX_DOLOADFAILED;
+    sal_uInt32 nError = ERRCODE_SFX_DOLOADFAILED;
     OSL_ENSURE(xInputStream.is(), "input stream missing");
     OSL_ENSURE(xModelComponent.is(), "document missing");
     OSL_ENSURE(rxContext.is(), "factory missing");
@@ -347,7 +347,7 @@ sal_uLong SmXMLImportWrapper::ReadThroughComponent(
 }
 
 
-sal_uLong SmXMLImportWrapper::ReadThroughComponent(
+sal_uInt32 SmXMLImportWrapper::ReadThroughComponent(
     const uno::Reference< embed::XStorage >& xStorage,
     const Reference<XComponent>& xModelComponent,
     const sal_Char* pStreamName,
diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx
index ded4ced23b72..94036043123e 100644
--- a/starmath/source/mathmlimport.hxx
+++ b/starmath/source/mathmlimport.hxx
@@ -48,9 +48,9 @@ public:
     explicit SmXMLImportWrapper(css::uno::Reference<css::frame::XModel> &rRef)
         : xModel(rRef) {}
 
-    sal_uLong Import(SfxMedium &rMedium);
+    sal_uInt32 Import(SfxMedium &rMedium);
 
-    static sal_uLong ReadThroughComponent(
+    static sal_uInt32 ReadThroughComponent(
         const css::uno::Reference< css::io::XInputStream >& xInputStream,
         const css::uno::Reference< css::lang::XComponent >& xModelComponent,
         css::uno::Reference< css::uno::XComponentContext > & rxContext,
@@ -58,7 +58,7 @@ public:
         const sal_Char* pFilterName,
         bool bEncrypted );
 
-    static sal_uLong ReadThroughComponent(
+    static sal_uInt32 ReadThroughComponent(
         const css::uno::Reference< css::embed::XStorage >& xStorage,
         const css::uno::Reference< css::lang::XComponent >& xModelComponent,
         const sal_Char* pStreamName,


More information about the Libreoffice-commits mailing list