Kaydet (Commit) 2002c37a authored tarafından Matteo Casalin's avatar Matteo Casalin

Use more proper integer types and reduce scope

Change-Id: Ib5483f857c4bddd7d0ece6b54e4d57a0347ee13a
üst b8ca608a
...@@ -61,9 +61,8 @@ sal_uInt16 SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const ...@@ -61,9 +61,8 @@ sal_uInt16 SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const
// then all linked areas on the topmost level // then all linked areas on the topmost level
SwDoc* pMyDoc = GetDoc(); SwDoc* pMyDoc = GetDoc();
const SwSectionFmts& rSectFmts = pMyDoc->GetSections(); const SwSectionFmts& rSectFmts = pMyDoc->GetSections();
sal_uInt16 n;
for( n = rSectFmts.size(); n; ) for( auto n = rSectFmts.size(); n; )
{ {
const SwSection* pSect = rSectFmts[ --n ]->GetGlobalDocSection(); const SwSection* pSect = rSectFmts[ --n ]->GetGlobalDocSection();
if( pSect ) if( pSect )
...@@ -90,7 +89,7 @@ sal_uInt16 SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const ...@@ -90,7 +89,7 @@ sal_uInt16 SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const
// and finally add the dummies (other text) // and finally add the dummies (other text)
SwNode* pNd; SwNode* pNd;
sal_uLong nSttIdx = pMyDoc->GetNodes().GetEndOfExtras().GetIndex() + 2; sal_uLong nSttIdx = pMyDoc->GetNodes().GetEndOfExtras().GetIndex() + 2;
for( n = 0; n < rArr.size(); ++n ) for( SwGlblDocContents::size_type n = 0; n < rArr.size(); ++n )
{ {
const SwGlblDocContent& rNew = *rArr[ n ]; const SwGlblDocContent& rNew = *rArr[ n ];
// Search from StartPos until rNew.DocPos for a content node. // Search from StartPos until rNew.DocPos for a content node.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment