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

Takeshi Abe tabe at fixedpoint.jp
Mon Jan 8 13:14:10 UTC 2018


 starmath/source/cfgitem.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 08de4faa001307a758e182ea981c769357c976bf
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sun Jan 7 18:42:35 2018 +0900

    starmath: Replace confusing sal_uIntPtr with sal_Int32
    
    Change-Id: If823398b75217f4a5a5bb5c83106d4d9d2e5f6be
    Reviewed-on: https://gerrit.libreoffice.org/47527
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx
index 318410638772..170bfe84b796 100644
--- a/starmath/source/cfgitem.cxx
+++ b/starmath/source/cfgitem.cxx
@@ -490,11 +490,11 @@ void SmMathConfig::GetSymbols( std::vector< SmSym > &rSymbols ) const
 
 void SmMathConfig::SetSymbols( const std::vector< SmSym > &rNewSymbols )
 {
-    sal_uIntPtr nCount = rNewSymbols.size();
+    auto nCount = sal::static_int_cast<sal_Int32>(rNewSymbols.size());
 
     Sequence< OUString > aNames = lcl_GetSymbolPropertyNames();
     const OUString *pNames = aNames.getConstArray();
-    sal_uIntPtr nSymbolProps = sal::static_int_cast< sal_uInt32 >(aNames.getLength());
+    sal_Int32 nSymbolProps = aNames.getLength();
 
     Sequence< PropertyValue > aValues( nCount * nSymbolProps );
     PropertyValue *pValues = aValues.getArray();


More information about the Libreoffice-commits mailing list