diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-29 11:36:42 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-29 19:44:23 +0100 |
commit | f104fb0b24d1a364a7a711b31b99770e4cd9183d (patch) | |
tree | e4dde3cc69f4740dcb95ea991c5b8248f76c8c50 | |
parent | 7685ff8eeac55e3ec86421e9a3bc70ea28d337a3 (diff) |
Use sal_Int32 for css::uno::Sequence length
Change-Id: I158ed73fcc520c6363baf82461e5220fc12a996b
Reviewed-on: https://gerrit.libreoffice.org/48837
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | sc/source/core/tool/appoptio.cxx | 4 |
1 files 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<sal_Int32> 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<sal_uInt16[]> pUShorts(new sal_uInt16[nCount]); - for (long i=0; i<nCount; i++) + for (sal_Int32 i=0; i<nCount; i++) pUShorts[i] = static_cast<sal_uInt16>(pArray[i]); rOpt.SetLRUFuncList( pUShorts.get(), sal::static_int_cast<sal_uInt16>(nCount) ); |