From f104fb0b24d1a364a7a711b31b99770e4cd9183d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 29 Jan 2018 11:36:42 +0100 Subject: Use sal_Int32 for css::uno::Sequence length Change-Id: I158ed73fcc520c6363baf82461e5220fc12a996b Reviewed-on: https://gerrit.libreoffice.org/48837 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sc/source/core/tool/appoptio.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc/source/core/tool/appoptio.cxx b/sc/source/core/tool/appoptio.cxx index 9da510633b2b..8023c11db3b8 100644 --- a/sc/source/core/tool/appoptio.cxx +++ b/sc/source/core/tool/appoptio.cxx @@ -130,12 +130,12 @@ static void lcl_SetLastFunctions( ScAppOptions& rOpt, const Any& rValue ) Sequence aSeq; if ( rValue >>= aSeq ) { - long nCount = aSeq.getLength(); + sal_Int32 nCount = aSeq.getLength(); if ( nCount < USHRT_MAX ) { const sal_Int32* pArray = aSeq.getConstArray(); std::unique_ptr pUShorts(new sal_uInt16[nCount]); - for (long i=0; i(pArray[i]); rOpt.SetLRUFuncList( pUShorts.get(), sal::static_int_cast(nCount) ); -- cgit