Kaydet (Commit) eba8515c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:loopvartoosmall

Change-Id: Ide32700aab3427a8bf18c806968822cdf3f91bf2
üst fdff69bd
......@@ -90,7 +90,7 @@ public:
void Reset();
sal_uInt16 FindPortion( sal_Int32 nCharPos, sal_Int32& rPortionStart, bool bPreferStartingPortion = false );
void DeleteFromPortion( sal_uInt16 nDelFrom );
void DeleteFromPortion( size_t nDelFrom );
};
struct TEWritingDirectionInfo
......
......@@ -113,7 +113,7 @@ void TETextPortionList::Reset()
maPortions.clear();
}
void TETextPortionList::DeleteFromPortion( sal_uInt16 nDelFrom )
void TETextPortionList::DeleteFromPortion( size_t nDelFrom )
{
SAL_WARN_IF( ( nDelFrom >= maPortions.size() ) && ( (nDelFrom != 0) || (maPortions.size() != 0) ), "vcl", "DeleteFromPortion: Out of range" );
for ( auto it = maPortions.begin() + nDelFrom; it != maPortions.end(); ++it )
......
......@@ -1774,8 +1774,8 @@ void TextEngine::CreateTextPortions( sal_uInt32 nPara, sal_Int32 nStartPos )
// Unfortunately, the number of TextPortions does not have to be
// equal to aPositions.Count(), because of linebreaks
sal_Int32 nPortionStart = 0;
sal_uInt16 nInvPortion = 0;
sal_uInt16 nP;
size_t nInvPortion = 0;
size_t nP;
for ( nP = 0; nP < pTEParaPortion->GetTextPortions().size(); nP++ )
{
TETextPortion* pTmpPortion = pTEParaPortion->GetTextPortions()[nP];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment