summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-01-07 17:57:11 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-01-07 21:04:36 +0100
commit8c54f9ab597496f1af3d05e83b7be6f5a62c50a0 (patch)
treef279b593ab70bf1c27cec5ee09d43d8b73fe9821
parent3631518b9b74ceb476367021853fc9cd111f476e (diff)
sal_uInt16 to size_type
Change-Id: I44b9972a8c7c5033b031e75fe714412e20bd4ccc
-rw-r--r--sw/source/core/crsr/crstrvl.cxx8
-rw-r--r--sw/source/core/crsr/findtxt.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index a37abdaf5e32..5f1e4f3b70d0 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -264,7 +264,7 @@ bool SwCrsrShell::GotoNextTOXBase( const OUString* pName )
const SwSectionFmts& rFmts = GetDoc()->GetSections();
SwCntntNode* pFnd = 0;
- for( sal_uInt16 n = rFmts.size(); n; )
+ for( SwSectionFmts::size_type n = rFmts.size(); n; )
{
const SwSection* pSect = rFmts[ --n ]->GetSection();
if (TOX_CONTENT_SECTION == pSect->GetType())
@@ -315,7 +315,7 @@ bool SwCrsrShell::GotoPrevTOXBase( const OUString* pName )
const SwSectionFmts& rFmts = GetDoc()->GetSections();
SwCntntNode* pFnd = 0;
- for( sal_uInt16 n = rFmts.size(); n; )
+ for( SwSectionFmts::size_type n = rFmts.size(); n; )
{
const SwSection* pSect = rFmts[ --n ]->GetSection();
if (TOX_CONTENT_SECTION == pSect->GetType())
@@ -2196,7 +2196,7 @@ bool SwCrsrShell::SelectNxtPrvHyperlink( bool bNext )
{
const SwTxtNode* pTxtNd;
const SwCharFmts* pFmts = GetDoc()->GetCharFmts();
- for( sal_uInt16 n = pFmts->size(); 1 < n; )
+ for( SwCharFmts::size_type n = pFmts->size(); 1 < n; )
{
SwIterator<SwTxtINetFmt,SwCharFmt> aIter(*(*pFmts)[--n]);
@@ -2232,7 +2232,7 @@ bool SwCrsrShell::SelectNxtPrvHyperlink( bool bNext )
// then check all the Flys with a URL or imapge map
{
const SwFrmFmts* pFmts = GetDoc()->GetSpzFrmFmts();
- for( sal_uInt16 n = 0, nEnd = pFmts->size(); n < nEnd; ++n )
+ for( SwFrmFmts::size_type n = 0, nEnd = pFmts->size(); n < nEnd; ++n )
{
SwFlyFrmFmt* pFmt = static_cast<SwFlyFrmFmt*>((*pFmts)[ n ]);
const SwFmtURL& rURLItem = pFmt->GetURL();
diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx
index 8b1d6d171c24..0cd49a122c68 100644
--- a/sw/source/core/crsr/findtxt.cxx
+++ b/sw/source/core/crsr/findtxt.cxx
@@ -167,7 +167,7 @@ lcl_CleanStr(const SwTxtNode& rNd, sal_Int32 const nStart, sal_Int32& rEnd,
}
while ( true );
- for( sal_uInt16 i = aReplaced.size(); i; )
+ for( std::vector<sal_Int32>::size_type i = aReplaced.size(); i; )
{
const sal_Int32 nTmp = aReplaced[ --i ];
if (nTmp == buf.getLength() - 1)