Some cppcheck cleaning
This commit is contained in:
parent
81607ad3e7
commit
689bde97d1
2 changed files with 3 additions and 3 deletions
|
@ -807,11 +807,12 @@ void SfxItemSet::SetRanges( const sal_uInt16 *pNewRanges )
|
|||
// create new item-array (by iterating through all new ranges)
|
||||
sal_uLong nSize = Capacity_Impl(pNewRanges);
|
||||
SfxItemArray aNewItems = new const SfxPoolItem* [ nSize ];
|
||||
sal_uInt16 n = 0, nNewCount = 0;
|
||||
sal_uInt16 nNewCount = 0;
|
||||
if ( _nCount == 0 )
|
||||
memset( aNewItems, 0, nSize * sizeof( SfxPoolItem* ) );
|
||||
else
|
||||
{
|
||||
sal_uInt16 n = 0;
|
||||
for ( const sal_uInt16 *pRange = pNewRanges; *pRange; pRange += 2 )
|
||||
{
|
||||
// iterate through all ids in the range
|
||||
|
|
|
@ -6436,14 +6436,13 @@ void OutputDevice::ImplDrawText( OutputDevice& rTargetDevice, const Rectangle& r
|
|||
XubString aLastLine;
|
||||
ImplMultiTextLineInfo aMultiLineInfo;
|
||||
ImplTextLineInfo* pLineInfo;
|
||||
long nMaxTextWidth;
|
||||
xub_StrLen i;
|
||||
xub_StrLen nLines;
|
||||
xub_StrLen nFormatLines;
|
||||
|
||||
if ( nTextHeight )
|
||||
{
|
||||
nMaxTextWidth = ImplGetTextLines( aMultiLineInfo, nWidth, aStr, nStyle, _rLayout );
|
||||
long nMaxTextWidth = ImplGetTextLines( aMultiLineInfo, nWidth, aStr, nStyle, _rLayout );
|
||||
nLines = (xub_StrLen)(nHeight/nTextHeight);
|
||||
nFormatLines = aMultiLineInfo.Count();
|
||||
if ( !nLines )
|
||||
|
|
Loading…
Reference in a new issue