[Libreoffice-commits] core.git: writerfilter/source
Stephan Bergmann
sbergman at redhat.com
Tue Mar 7 18:52:38 UTC 2017
writerfilter/source/dmapper/NumberingManager.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 265a19ca74bd62d4b3eecfc4b7dbb4c9cc50e014
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Mar 7 19:51:59 2017 +0100
loplugin:loopvartoosmall
Change-Id: I089affb48717d64846064b61344820f1b87ac317
diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx
index 965fd27..a27af1d 100644
--- a/writerfilter/source/dmapper/NumberingManager.cxx
+++ b/writerfilter/source/dmapper/NumberingManager.cxx
@@ -540,14 +540,14 @@ void ListDef::CreateNumberingRules( DomainMapper& rDMapper,
uno::Sequence< uno::Sequence< beans::PropertyValue > > aProps = GetPropertyValues( );
sal_Int32 nAbstLevels = m_pAbstractDef ? m_pAbstractDef->Size() : 0;
- sal_Int16 nLevel = 0;
+ sal_Int32 nLevel = 0;
while ( nLevel < nAbstLevels )
{
ListLevel::Pointer pAbsLevel = m_pAbstractDef->GetLevel( nLevel );
ListLevel::Pointer pLevel = GetLevel( nLevel );
// Get the merged level properties
- auto aLvlProps = comphelper::sequenceToContainer< std::vector<beans::PropertyValue> >(aProps[sal_Int32(nLevel)]);
+ auto aLvlProps = comphelper::sequenceToContainer< std::vector<beans::PropertyValue> >(aProps[nLevel]);
// Get the char style
uno::Sequence< beans::PropertyValue > aAbsCharStyleProps = pAbsLevel->GetCharStyleProperties( );
More information about the Libreoffice-commits
mailing list