summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)