summaryrefslogtreecommitdiff
path: root/starmath/source/visitors.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-21 09:57:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-21 13:53:17 +0100
commit585328a7136aaa4b98b9cac0355a2cd7e9078dec (patch)
tree28fd94cd6ecaf484de8deec5cb404149666e1654 /starmath/source/visitors.cxx
parent10e73684468a811acae56dfeafc8ecb5876a7960 (diff)
ofz#4703 Direct-leak
Change-Id: I5f3385d87aa5a48a8df3b6774dd1166cec60ebf8 Reviewed-on: https://gerrit.libreoffice.org/46893 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source/visitors.cxx')
-rw-r--r--starmath/source/visitors.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index 91e0e3a62de0..207e274680c4 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -1613,11 +1613,12 @@ void SmCloningVisitor::CloneKids( SmStructureNode* pSource, SmStructureNode* pTa
SmNode* pCurrResult = mpResult;
//Create array for holding clones
- sal_uInt16 nSize = pSource->GetNumSubNodes( );
+ size_t nSize = pSource->GetNumSubNodes( );
SmNodeArray aNodes( nSize );
//Clone children
- for( sal_uInt16 i = 0; i < nSize; i++ ){
+ for (size_t i = 0; i < nSize; ++i)
+ {
SmNode* pKid;
if( nullptr != ( pKid = pSource->GetSubNode( i ) ) )
pKid->Accept( this );