summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-02-07 11:03:45 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-02-21 17:44:56 +0100
commit2aab43b2a58aa670b8d38dae1a94cd1c6ba5693c (patch)
treee8748be0e1fcad51501fba1b63c2a0925f4775b5
parent02fea78109594b0cbeff2e8bfd5291c9ebf54c4f (diff)
Use size_type instead of sal_uInt16
Change-Id: I7d6762f2bf7aec15255288d356ad59d161b03dfd
-rw-r--r--sw/source/core/doc/docredln.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 7e8c9e5890bf..0de789d23cbd 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -52,13 +52,13 @@ using namespace com::sun::star;
void sw_DebugRedline( const SwDoc* pDoc )
{
- static sal_uInt16 nWatch = 0;
+ static SwRedlineTbl::size_type nWatch = 0;
const SwRedlineTbl& rTbl = pDoc->getIDocumentRedlineAccess().GetRedlineTbl();
- for( sal_uInt16 n = 0; n < rTbl.size(); ++n )
+ for( SwRedlineTbl::size_type n = 0; n < rTbl.size(); ++n )
{
- sal_uInt16 nDummy = 0;
+ SwRedlineTbl::size_type nDummy = 0;
const SwRangeRedline* pCurrent = rTbl[ n ];
- const SwRangeRedline* pNext = n+1 < (sal_uInt16)rTbl.size() ? rTbl[ n+1 ] : 0;
+ const SwRangeRedline* pNext = n+1 < rTbl.size() ? rTbl[ n+1 ] : 0;
if( pCurrent == pNext )
++nDummy;
if( n == nWatch )
@@ -1104,7 +1104,7 @@ void SwRangeRedline::MoveToSection()
// In order to not move other Redlines' indices, we set them
// to the end (is exclusive)
const SwRedlineTbl& rTbl = pDoc->getIDocumentRedlineAccess().GetRedlineTbl();
- for( sal_uInt16 n = 0; n < rTbl.size(); ++n )
+ for( SwRedlineTbl::size_type n = 0; n < rTbl.size(); ++n )
{
SwRangeRedline* pRedl = rTbl[ n ];
if( pRedl->GetBound(true) == *pStt )
@@ -1254,7 +1254,7 @@ void SwRangeRedline::DelCopyOfSection(size_t nMyPos)
// In order to not move other Redlines' indices, we set them
// to the end (is exclusive)
const SwRedlineTbl& rTbl = pDoc->getIDocumentRedlineAccess().GetRedlineTbl();
- for( sal_uInt16 n = 0; n < rTbl.size(); ++n )
+ for( SwRedlineTbl::size_type n = 0; n < rTbl.size(); ++n )
{
SwRangeRedline* pRedl = rTbl[ n ];
if( pRedl->GetBound(true) == *pStt )
@@ -1334,7 +1334,7 @@ void SwRangeRedline::MoveFromSection(size_t nMyPos)
std::vector<SwPosition*> aBeforeArr, aBehindArr;
OSL_ENSURE( this, "this is not in the array?" );
bool bBreak = false;
- sal_uInt16 n;
+ SwRedlineTbl::size_type n;
for( n = nMyPos+1; !bBreak && n < rTbl.size(); ++n )
{