diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-05-25 10:33:07 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-06-01 19:32:06 +0200 |
commit | f0d05ed0358fa41b6d67caa51c07aaf9d1520841 (patch) | |
tree | f5f483cba236f8e3406591a001ae045327655f87 /sw/source | |
parent | 88c397aaac462ccc2b800b614bfa427d71a8011a (diff) |
sal_uInt16 to size_t
Change-Id: I03d205d8c11be7e5b5aca3c711dd26e52f174fff
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/unocore/unoportenum.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/unocore/unoredline.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx index 887b84fdc589..2b0ae04147ff 100644 --- a/sw/source/core/unocore/unoportenum.cxx +++ b/sw/source/core/unocore/unoportenum.cxx @@ -1032,14 +1032,14 @@ static void lcl_FillRedlineArray( SwXRedlinePortion_ImplList& rRedArr ) { const SwRedlineTbl& rRedTbl = rDoc.GetRedlineTbl(); - sal_uInt16 nRedTblCount = rRedTbl.size(); + const size_t nRedTblCount = rRedTbl.size(); if ( nRedTblCount > 0 ) { const SwPosition* pStart = rUnoCrsr.GetPoint(); const SwNodeIndex nOwnNode = pStart->nNode; - for(sal_uInt16 nRed = 0; nRed < nRedTblCount; nRed++) + for(size_t nRed = 0; nRed < nRedTblCount; ++nRed) { const SwRangeRedline* pRedline = rRedTbl[nRed]; const SwPosition* pRedStart = pRedline->Start(); diff --git a/sw/source/core/unocore/unoredline.cxx b/sw/source/core/unocore/unoredline.cxx index 314178d72532..d66263a9028b 100644 --- a/sw/source/core/unocore/unoredline.cxx +++ b/sw/source/core/unocore/unoredline.cxx @@ -278,7 +278,7 @@ void SwXRedlinePortion::Validate() throw( uno::RuntimeException ) SwDoc* pDoc = pUnoCrsr->GetDoc(); const SwRedlineTbl& rRedTbl = pDoc->GetRedlineTbl(); bool bFound = false; - for(sal_uInt16 nRed = 0; nRed < rRedTbl.size() && !bFound; nRed++) + for(size_t nRed = 0; nRed < rRedTbl.size() && !bFound; nRed++) bFound = &m_rRedline == rRedTbl[nRed]; if(!bFound) throw uno::RuntimeException(); |