diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-06 18:32:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-06 18:32:40 +0200 |
commit | a48fadd2618274fd167ceefc88a6db689af01158 (patch) | |
tree | 320b8304b239b935752219bb7569214a882b1530 /editeng | |
parent | 9cc130d233dc980bfecd4a485bef0280feff5b18 (diff) |
Improved loplugin:redundantcast, static_cast on arithmetic types: editeng
Change-Id: I64be28eb18822c29e3d540decb465c9204d16894
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdbg.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/editeng/source/editeng/editdbg.cxx b/editeng/source/editeng/editdbg.cxx index 7929980b92ad..9249c0b2b0d3 100644 --- a/editeng/source/editeng/editdbg.cxx +++ b/editeng/source/editeng/editdbg.cxx @@ -153,7 +153,7 @@ OString DbgOutItem(const SfxItemPool& rPool, const SfxPoolItem& rItem) for (sal_uInt16 i = 0; i < rTabs.Count(); ++i) { const SvxTabStop& rTab = rTabs[i]; - aDebStr.append(static_cast<sal_Int32>(rTab.GetTabPos())); + aDebStr.append(rTab.GetTabPos()); aDebStr.append(' '); } aDebStr.append(')'); @@ -354,7 +354,7 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, bool bInfoBox ) const std::unique_ptr<EditCharAttrib>& rAttr = pPPortion->GetNode()->GetCharAttribs().GetAttribs()[z]; OStringBuffer aCharAttribs; aCharAttribs.append("\nA"); - aCharAttribs.append(static_cast<sal_Int32>(nPortion)); + aCharAttribs.append(nPortion); aCharAttribs.append(": "); aCharAttribs.append(static_cast<sal_Int32>(rAttr->GetItem()->Which())); aCharAttribs.append('\t'); @@ -375,18 +375,18 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, bool bInfoBox ) OStringBuffer aPortionStr("\nText portions: #"); aPortionStr.append(static_cast<sal_Int32>(nTextPortions)); aPortionStr.append(" \nA"); - aPortionStr.append(static_cast<sal_Int32>(nPortion)); + aPortionStr.append(nPortion); aPortionStr.append(": Paragraph Length = "); - aPortionStr.append(static_cast<sal_Int32>(pPPortion->GetNode()->Len())); + aPortionStr.append(pPPortion->GetNode()->Len()); aPortionStr.append("\nA"); - aPortionStr.append(static_cast<sal_Int32>(nPortion)); + aPortionStr.append(nPortion); aPortionStr.append(": "); sal_Int32 n = 0; for ( sal_Int32 z = 0; z < nTextPortions; ++z ) { TextPortion& rPortion = pPPortion->GetTextPortions()[z]; aPortionStr.append(' '); - aPortionStr.append(static_cast<sal_Int32>(rPortion.GetLen())); + aPortionStr.append(rPortion.GetLen()); aPortionStr.append('('); aPortionStr.append(static_cast<sal_Int32>(rPortion.GetSize().Width())); aPortionStr.append(')'); @@ -397,9 +397,9 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, bool bInfoBox ) n += rPortion.GetLen(); } aPortionStr.append("\nA"); - aPortionStr.append(static_cast<sal_Int32>(nPortion)); + aPortionStr.append(nPortion); aPortionStr.append(": Total length: "); - aPortionStr.append(static_cast<sal_Int32>(n)); + aPortionStr.append(n); if ( pPPortion->GetNode()->Len() != n ) aPortionStr.append(" => Error !!!"); fprintf(fp, "%s", aPortionStr.getStr()); |