diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-05-24 00:26:34 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-05-24 22:09:11 +0200 |
commit | 5490dea958b656cc3f837238fd9b27eef13a0c3a (patch) | |
tree | 1fe6c7ceb091182eac7d34eb7270afe333c32260 /sw | |
parent | 554d7bf0d1fe6a0019074a4f68c3205449bf9b7f (diff) |
sal_uInt16 to size_t
Change-Id: Ia2e6b067884bcbab680925b8613dd5a73d1fc3fb
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unosect.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx index 4d403a7cb855..8871567b0012 100644 --- a/sw/source/core/unocore/unosect.cxx +++ b/sw/source/core/unocore/unosect.cxx @@ -250,7 +250,7 @@ SwXTextSection::getChildSections() throw (uno::RuntimeException, std::exception) rSectionFmt.GetChildSections(aChildren, SORTSECT_NOT, false); uno::Sequence<uno::Reference<text::XTextSection> > aSeq(aChildren.size()); uno::Reference< text::XTextSection > * pArray = aSeq.getArray(); - for (sal_uInt16 i = 0; i < aChildren.size(); i++) + for (size_t i = 0; i < aChildren.size(); ++i) { SwSectionFmt *const pChild = aChildren[i]->GetFmt(); pArray[i] = CreateXTextSection(pChild); @@ -318,9 +318,9 @@ throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) GetChildSections(aSectionsArr); // and search for current header section - const sal_uInt16 nCount = aSectionsArr.size(); + const size_t nCount = aSectionsArr.size(); bool bHeaderPresent = false; - for(sal_uInt16 i = 0; i < nCount; i++) + for(size_t i = 0; i < nCount; ++i) { if (aSectionsArr[i]->GetType() == TOX_HEADER_SECTION) bHeaderPresent = true; @@ -520,7 +520,7 @@ lcl_UpdateSection(SwSectionFmt *const pFmt, SwDoc *const pDoc = pFmt->GetDoc(); SwSectionFmts const& rFmts = pDoc->GetSections(); UnoActionContext aContext(pDoc); - for (sal_uInt16 i = 0; i < rFmts.size(); i++) + for (size_t i = 0; i < rFmts.size(); ++i) { if (rFmts[i]->GetSection()->GetSectionName() == rSection.GetSectionName()) @@ -1152,7 +1152,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException, } const SwRedlineTbl& rRedTbl = pFmt->GetDoc()->GetRedlineTbl(); - for (sal_uInt16 nRed = 0; nRed < rRedTbl.size(); nRed++) + for (size_t nRed = 0; nRed < rRedTbl.size(); ++nRed) { const SwRangeRedline* pRedline = rRedTbl[nRed]; SwNode const*const pRedPointNode = pRedline->GetNode(true); @@ -1712,7 +1712,7 @@ throw (uno::RuntimeException, std::exception) const SwSectionFmts& rFmts = pFmt->GetDoc()->GetSections(); sal_uInt16 nApplyPos = USHRT_MAX; - for( sal_uInt16 i = 0; i < rFmts.size(); i++ ) + for( size_t i = 0; i < rFmts.size(); ++i ) { if(rFmts[i]->GetSection() == pSect) { |