summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-05-25 10:33:07 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-06-01 19:32:06 +0200
commitf0d05ed0358fa41b6d67caa51c07aaf9d1520841 (patch)
treef5f483cba236f8e3406591a001ae045327655f87 /sw
parent88c397aaac462ccc2b800b614bfa427d71a8011a (diff)
sal_uInt16 to size_t
Change-Id: I03d205d8c11be7e5b5aca3c711dd26e52f174fff
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoportenum.cxx4
-rw-r--r--sw/source/core/unocore/unoredline.cxx2
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();