diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-11-21 18:21:18 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-11-23 14:20:36 +0100 |
commit | ace51a616c3fc6abdb0df6ed4b0686eb6525848a (patch) | |
tree | 06248aaf0cb90bfd499a05c6bbb2efb265f60b4d /sw | |
parent | cd4628ae161609b5372905ad6fbc618193a2d3ee (diff) |
xub_StrLen to sal_Int32
Change-Id: Iedc8eec38c0ea490b1b8da4ff7ca9237a77505b2
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ascii/ascatr.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/filter/ascii/ascatr.cxx b/sw/source/filter/ascii/ascatr.cxx index a49ef13486c6..7a3cf9281e31 100644 --- a/sw/source/filter/ascii/ascatr.cxx +++ b/sw/source/filter/ascii/ascatr.cxx @@ -44,31 +44,31 @@ class SwASC_AttrIter { SwASCWriter& rWrt; const SwTxtNode& rNd; - xub_StrLen nAktSwPos; + sal_Int32 nAktSwPos; - xub_StrLen SearchNext( xub_StrLen nStartPos ); + sal_Int32 SearchNext( sal_Int32 nStartPos ); public: - SwASC_AttrIter( SwASCWriter& rWrt, const SwTxtNode& rNd, xub_StrLen nStt ); + SwASC_AttrIter( SwASCWriter& rWrt, const SwTxtNode& rNd, sal_Int32 nStt ); void NextPos() { nAktSwPos = SearchNext( nAktSwPos + 1 ); } - xub_StrLen WhereNext() const + sal_Int32 WhereNext() const { return nAktSwPos; } - bool OutAttr( xub_StrLen nSwPos ); + bool OutAttr( sal_Int32 nSwPos ); }; SwASC_AttrIter::SwASC_AttrIter( SwASCWriter& rWr, const SwTxtNode& rTxtNd, - xub_StrLen nStt ) + sal_Int32 nStt ) : rWrt( rWr ) , rNd( rTxtNd ) , nAktSwPos( 0 ) @@ -77,9 +77,9 @@ SwASC_AttrIter::SwASC_AttrIter( } -xub_StrLen SwASC_AttrIter::SearchNext( xub_StrLen nStartPos ) +sal_Int32 SwASC_AttrIter::SearchNext( sal_Int32 nStartPos ) { - xub_StrLen nMinPos = STRING_MAXLEN; + sal_Int32 nMinPos = SAL_MAX_INT32; const SwpHints* pTxtAttrs = rNd.GetpSwpHints(); if( pTxtAttrs ) { @@ -90,7 +90,7 @@ xub_StrLen SwASC_AttrIter::SearchNext( xub_StrLen nStartPos ) const SwTxtAttr* pHt = (*pTxtAttrs)[i]; if ( pHt->HasDummyChar() ) { - xub_StrLen nPos = *pHt->GetStart(); + sal_Int32 nPos = *pHt->GetStart(); if( nPos >= nStartPos && nPos <= nMinPos ) nMinPos = nPos; @@ -118,7 +118,7 @@ xub_StrLen SwASC_AttrIter::SearchNext( xub_StrLen nStartPos ) } -bool SwASC_AttrIter::OutAttr( xub_StrLen nSwPos ) +bool SwASC_AttrIter::OutAttr( sal_Int32 nSwPos ) { bool bRet = false; const SwpHints* pTxtAttrs = rNd.GetpSwpHints(); |