diff options
Diffstat (limited to 'sw')
29 files changed, 49 insertions, 49 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index 1d5b495dde7b..efc5402e5cf1 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -625,7 +625,7 @@ public: */ SwShellCursor* getShellCursor( bool bBlock ); const SwShellCursor* getShellCursor( bool bBlock ) const - { return (const_cast<SwCursorShell*>(this))->getShellCursor( bBlock ); } + { return const_cast<SwCursorShell*>(this)->getShellCursor( bBlock ); } bool IsBlockMode() const { return nullptr != m_pBlockCursor; } diff --git a/sw/inc/ndhints.hxx b/sw/inc/ndhints.hxx index 6cc69c272c41..77aebc67d2be 100644 --- a/sw/inc/ndhints.hxx +++ b/sw/inc/ndhints.hxx @@ -114,7 +114,7 @@ private: { if ( m_bCalcHiddenParaField ) { - (const_cast<SwpHints*>(this))->CalcHiddenParaField(); + const_cast<SwpHints*>(this)->CalcHiddenParaField(); } return m_bHasHiddenParaField; } diff --git a/sw/inc/txtatr.hxx b/sw/inc/txtatr.hxx index ebd11b1cdfde..3dea8e696ba6 100644 --- a/sw/inc/txtatr.hxx +++ b/sw/inc/txtatr.hxx @@ -89,7 +89,7 @@ public: SwCharFormat* GetCharFormat(); const SwCharFormat* GetCharFormat() const - { return (const_cast<SwTextRuby*>(this))->GetCharFormat(); } + { return const_cast<SwTextRuby*>(this)->GetCharFormat(); } }; inline const SwTextNode& SwTextRuby::GetTextNode() const diff --git a/sw/inc/txtflcnt.hxx b/sw/inc/txtflcnt.hxx index e7177fda7d1f..ed44abe4533a 100644 --- a/sw/inc/txtflcnt.hxx +++ b/sw/inc/txtflcnt.hxx @@ -50,7 +50,7 @@ inline SwFlyInContentFrame *SwTextFlyCnt::GetFlyFrame( const SwFrame *pCurrFrame inline const SwFlyInContentFrame *SwTextFlyCnt::GetFlyFrame( const SwFrame *pCurrFrame ) const { - return (const_cast<SwTextFlyCnt*>(this))->GetFlyFrame_( pCurrFrame ); + return const_cast<SwTextFlyCnt*>(this)->GetFlyFrame_( pCurrFrame ); } #endif diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index f88f70c0579a..4a52059a5141 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -561,7 +561,7 @@ public: const BitmapEx& GetReplacementBitmap(bool bIsErrorState); void DeleteReplacementBitmaps(); - const SwPostItMgr* GetPostItMgr() const { return (const_cast<SwViewShell*>(this))->GetPostItMgr(); } + const SwPostItMgr* GetPostItMgr() const { return const_cast<SwViewShell*>(this)->GetPostItMgr(); } SwPostItMgr* GetPostItMgr(); /// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 3ca56245b1b0..3d0dd877409e 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -1132,7 +1132,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() { uno::Reference < XAccessible > xAcc( (*aIter).second ); if( xAcc.is() ) - (static_cast < ::accessibility::AccessibleShape* >(xAcc.get()))->SetState( AccessibleStateType::SELECTED ); + static_cast < ::accessibility::AccessibleShape* >(xAcc.get())->SetState( AccessibleStateType::SELECTED ); ++aIter; } @@ -1156,7 +1156,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() { uno::Reference < XAccessible > xAcc( (*aIter).second ); if(xAcc.is()) - (static_cast < ::accessibility::AccessibleShape* >(xAcc.get()))->ResetState( AccessibleStateType::SELECTED ); + static_cast < ::accessibility::AccessibleShape* >(xAcc.get())->ResetState( AccessibleStateType::SELECTED ); ++aIter; continue; @@ -1218,7 +1218,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() { uno::Reference < XAccessible > xAcc( (*aIter).second ); if(xAcc.is()) - (static_cast < ::accessibility::AccessibleShape* >(xAcc.get()))->ResetState( AccessibleStateType::SELECTED ); + static_cast < ::accessibility::AccessibleShape* >(xAcc.get())->ResetState( AccessibleStateType::SELECTED ); } } } @@ -1235,7 +1235,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() { uno::Reference < XAccessible > xAcc( (*aIter).second ); if(xAcc.is()) - (static_cast < ::accessibility::AccessibleShape* >(xAcc.get()))->ResetState( AccessibleStateType::SELECTED ); + static_cast < ::accessibility::AccessibleShape* >(xAcc.get())->ResetState( AccessibleStateType::SELECTED ); } --nNumShapes; ++pShape; @@ -1263,7 +1263,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() if(xAcc.is()) { - SwAccessibleFrameBase *pAccFrame = (static_cast< SwAccessibleFrameBase * >(xAcc.get())); + SwAccessibleFrameBase *pAccFrame = static_cast< SwAccessibleFrameBase * >(xAcc.get()); bool bFrameChanged = pAccFrame->SetSelectedState( true ); if (bFrameChanged) { @@ -1338,7 +1338,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() bool isChanged = false; if( xAcc.is() ) { - isChanged = (static_cast< SwAccessibleContext * >(xAcc.get()))->SetSelectedState( true ); + isChanged = static_cast< SwAccessibleContext * >(xAcc.get())->SetSelectedState( true ); } if(!isChanged) { @@ -1369,7 +1369,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() { uno::Reference < XAccessible > xAcc = (*aIter).second; if(xAcc.is()) - (static_cast< SwAccessibleContext * >(xAcc.get()))->SetSelectedState( false ); + static_cast< SwAccessibleContext * >(xAcc.get())->SetSelectedState( false ); ++aIter; vecRemove.push_back(static_cast< SwAccessibleContext * >(xAcc.get())); } diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx index 23986014cc79..7baa336775d8 100644 --- a/sw/source/core/access/acctable.cxx +++ b/sw/source/core/access/acctable.cxx @@ -693,7 +693,7 @@ const SwTableBox* SwAccessibleTable::GetTableBox( sal_Int32 nChildIndex ) const const SwTableBox* pBox = nullptr; // get table box for 'our' table cell - SwAccessibleChild aCell( GetChild( *(const_cast<SwAccessibleMap*>(GetMap())), nChildIndex ) ); + SwAccessibleChild aCell( GetChild( *const_cast<SwAccessibleMap*>(GetMap()), nChildIndex ) ); if( aCell.GetSwFrame() ) { const SwFrame* pChildFrame = aCell.GetSwFrame(); diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index 68030bbb2955..3dec191cc6c8 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -511,7 +511,7 @@ namespace sw { namespace mark const IDocumentMarkAccess::MarkType eType ) { SwPosition aPos(rTextNode); - aPos.nContent.Assign(&(const_cast<SwTextNode&>(rTextNode)), 0); + aPos.nContent.Assign(&const_cast<SwTextNode&>(rTextNode), 0); const iterator_t ppExistingMark = lcl_FindMarkAtPos(m_vBookmarks, aPos, eType); if(ppExistingMark != m_vBookmarks.end()) return ppExistingMark->get(); diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx index 68e04619202a..fa9eb822b10e 100644 --- a/sw/source/core/doc/docfld.cxx +++ b/sw/source/core/doc/docfld.cxx @@ -370,9 +370,9 @@ const SwDBData& SwDoc::GetDBDesc() if(pField->IsFieldInDoc()) { if(SwFieldIds::Database == nWhich) - maDBData = (static_cast < SwDBFieldType * > (pField->GetField()->GetTyp()))->GetDBData(); + maDBData = static_cast < SwDBFieldType * > (pField->GetField()->GetTyp())->GetDBData(); else - maDBData = (static_cast < SwDBNameInfField* > (pField->GetField()))->GetRealDBData(); + maDBData = static_cast < SwDBNameInfField* > (pField->GetField())->GetRealDBData(); break; } } diff --git a/sw/source/core/draw/dview.cxx b/sw/source/core/draw/dview.cxx index 4719e548bf9a..5bf7304acf39 100644 --- a/sw/source/core/draw/dview.cxx +++ b/sw/source/core/draw/dview.cxx @@ -510,7 +510,7 @@ void SwDrawView::ObjOrderChanged( SdrObject* pObj, sal_uLong nOldPos, bMovedForward && nNewPos < nObjCount - 1 ) { sal_uInt32 nMaxChildOrdNum = - GetMaxChildOrdNum( *(static_cast<const SwFlyFrame*>(pMovedAnchoredObj)) ); + GetMaxChildOrdNum( *static_cast<const SwFlyFrame*>(pMovedAnchoredObj) ); if ( nNewPos < nMaxChildOrdNum ) { // determine position before the object before its top 'child' object diff --git a/sw/source/core/layout/calcmove.cxx b/sw/source/core/layout/calcmove.cxx index 5b5b7ac644ba..26916c9af1b5 100644 --- a/sw/source/core/layout/calcmove.cxx +++ b/sw/source/core/layout/calcmove.cxx @@ -1180,7 +1180,7 @@ void SwContentFrame::MakeAll(vcl::RenderContext* /*pRenderContext*/) sal_uInt32 nToPageNum = 0; const bool bMoveFwdByObjPos = SwLayouter::FrameMovedFwdByObjPos( *(GetAttrSet()->GetDoc()), - *(static_cast<SwTextFrame*>(this)), + *static_cast<SwTextFrame*>(this), nToPageNum ); // #i58182# // Also move a paragraph forward, which is the first one inside a table cell. diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index a68462a4cdc7..c7589de9426f 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -2306,7 +2306,7 @@ static void lcl_RemoveObjsFromPage( SwFrame* _pFrame ) if (pObj->GetFrameFormat().GetAnchor().GetAnchorId() != RndStdIds::FLY_AS_CHAR) { pObj->GetPageFrame()->RemoveDrawObjFromPage( - *(static_cast<SwAnchoredDrawObject*>(pObj)) ); + *static_cast<SwAnchoredDrawObject*>(pObj) ); } } } @@ -2469,7 +2469,7 @@ static void lcl_AddObjsToPage( SwFrame* _pFrame, SwPageFrame* _pPage ) { pObj->InvalidateObjPos(); _pPage->AppendDrawObjToPage( - *(static_cast<SwAnchoredDrawObject*>(pObj)) ); + *static_cast<SwAnchoredDrawObject*>(pObj) ); } } } diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx index 9a5ea484770c..f7f03d1f9bae 100644 --- a/sw/source/core/layout/layact.cxx +++ b/sw/source/core/layout/layact.cxx @@ -824,7 +824,7 @@ bool SwLayAction::TurboAction_( const SwContentFrame *pCnt ) // format floating screen objects at content frame. if ( pCnt->IsTextFrame() && - !SwObjectFormatter::FormatObjsAtFrame( *(const_cast<SwContentFrame*>(pCnt)), + !SwObjectFormatter::FormatObjsAtFrame( *const_cast<SwContentFrame*>(pCnt), *pPage, this ) ) { return false; @@ -1625,7 +1625,7 @@ bool SwLayAction::FormatContent( const SwPageFrame *pPage ) if ( !IsAgain() && ( !IsInterrupt() || mbFormatContentOnInterrupt ) && pContent->IsTextFrame() && - !SwObjectFormatter::FormatObjsAtFrame( *(const_cast<SwContentFrame*>(pContent)), + !SwObjectFormatter::FormatObjsAtFrame( *const_cast<SwContentFrame*>(pContent), *(pContent->FindPageFrame()), this ) ) { return false; @@ -1817,7 +1817,7 @@ bool SwLayAction::FormatFlyContent( const SwFlyFrame *pFly ) // pass correct page frame to the object formatter. if ( pContent->IsTextFrame() && !SwObjectFormatter::FormatObjsAtFrame( - *(const_cast<SwContentFrame*>(pContent)), + *const_cast<SwContentFrame*>(pContent), *(pContent->FindPageFrame()), this ) ) { // restart format with first content diff --git a/sw/source/core/layout/objectformatter.cxx b/sw/source/core/layout/objectformatter.cxx index 65b37f91ad2e..0818b897ac49 100644 --- a/sw/source/core/layout/objectformatter.cxx +++ b/sw/source/core/layout/objectformatter.cxx @@ -245,7 +245,7 @@ void SwObjectFormatter::FormatLayout_( SwLayoutFrame& _rLayoutFrame ) { if ( pLowerFrame->IsLayoutFrame() ) { - FormatLayout_( *(static_cast<SwLayoutFrame*>(pLowerFrame)) ); + FormatLayout_( *static_cast<SwLayoutFrame*>(pLowerFrame) ); } pLowerFrame = pLowerFrame->GetNext(); } diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 373bab84ea08..b78c230137de 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -4596,7 +4596,7 @@ void SwFrame::PaintShadow( const SwRect& rRect, SwRect& rOutRect, // "asked" their frame format. const bool bDrawFullShadowRectangle = ( IsLayoutFrame() && - (static_cast<const SwLayoutFrame*>(this))->GetFormat()->IsBackgroundTransparent() + static_cast<const SwLayoutFrame*>(this)->GetFormat()->IsBackgroundTransparent() ); SwRectFnSet aRectFnSet(this); @@ -7562,7 +7562,7 @@ bool SwFrame::GetBackgroundBrush( if ( pFrame->IsFlyFrame() ) { // OD 20.08.2002 - use "static_cast" instead of "old C-cast" - pFrame = (static_cast<const SwFlyFrame*>(pFrame))->GetAnchorFrame(); + pFrame = static_cast<const SwFlyFrame*>(pFrame)->GetAnchorFrame(); } else { diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index df0a1e0bc1bb..34420867ca42 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -246,7 +246,7 @@ static void lcl_InvalidateLowerObjs( SwLayoutFrame& _rLayoutFrame, { if ( pLowerFrame->IsLayoutFrame() ) { - ::lcl_InvalidateLowerObjs( *(static_cast<SwLayoutFrame*>(pLowerFrame)), + ::lcl_InvalidateLowerObjs( *static_cast<SwLayoutFrame*>(pLowerFrame), _bMoveObjsOutOfRange, _pPageFrame ); } if ( pLowerFrame->GetDrawObjs() ) @@ -1336,7 +1336,7 @@ void SwInvalidatePositions( SwFrame *pFrame, long nBottom ) { ::SwInvalidatePositions( static_cast<SwLayoutFrame*>(pFrame)->Lower(), nBottom); // #i26945# - ::lcl_InvalidateLowerObjs( *(static_cast<SwLayoutFrame*>(pFrame)) ); + ::lcl_InvalidateLowerObjs( *static_cast<SwLayoutFrame*>(pFrame) ); } } else diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx index 7ab2493cb1d1..8cfbec1f17cf 100644 --- a/sw/source/core/layout/trvlfrm.cxx +++ b/sw/source/core/layout/trvlfrm.cxx @@ -1786,7 +1786,7 @@ sal_uInt16 SwFrame::GetVirtPageNum() const return 0; sal_uInt16 nPhyPage = pPage->GetPhyPageNum(); - if ( !(static_cast<const SwRootFrame*>(pPage->GetUpper()))->IsVirtPageNum() ) + if ( !static_cast<const SwRootFrame*>(pPage->GetUpper())->IsVirtPageNum() ) return nPhyPage; //Search the nearest section using the virtual page number. @@ -2023,12 +2023,12 @@ void SwRootFrame::CalcFrameRects(SwShellCursor &rCursor) { const SwAnchoredObject* pObj = pStartFrame->FindFlyFrame(); OSL_ENSURE( pObj, "No Start Object." ); - if (pObj) aSortObjs.Insert( *(const_cast<SwAnchoredObject*>(pObj)) ); + if (pObj) aSortObjs.Insert( *const_cast<SwAnchoredObject*>(pObj) ); const SwAnchoredObject* pObj2 = pEndFrame->FindFlyFrame(); OSL_ENSURE( pObj2, "SwRootFrame::CalcFrameRects(..) - FlyFrame missing - looks like an invalid selection" ); if ( pObj2 != nullptr && pObj2 != pObj ) { - aSortObjs.Insert( *(const_cast<SwAnchoredObject*>(pObj2)) ); + aSortObjs.Insert( *const_cast<SwAnchoredObject*>(pObj2) ); } } @@ -2459,7 +2459,7 @@ void SwRootFrame::CalcFrameRects(SwShellCursor &rCursor) if ( pContent->IsInFly() ) { const SwAnchoredObject* pObj = pContent->FindFlyFrame(); - aSortObjs.Insert( *(const_cast<SwAnchoredObject*>(pObj)) ); + aSortObjs.Insert( *const_cast<SwAnchoredObject*>(pObj) ); } // Consider only frames which have the same IsInDocBody value like pStartFrame diff --git a/sw/source/core/objectpositioning/ascharanchoredobjectposition.cxx b/sw/source/core/objectpositioning/ascharanchoredobjectposition.cxx index ffb65593fdf5..2a97fdb0e1f7 100644 --- a/sw/source/core/objectpositioning/ascharanchoredobjectposition.cxx +++ b/sw/source/core/objectpositioning/ascharanchoredobjectposition.cxx @@ -301,7 +301,7 @@ void SwAsCharAnchoredObjectPosition::CalcPosition() aRelAttr != rFlyInContentFrame.GetCurrRelPos() ) ) { // set new anchor position and relative position - SwFlyInContentFrame* pFlyInContentFrame = &(const_cast<SwFlyInContentFrame&>(rFlyInContentFrame)); + SwFlyInContentFrame* pFlyInContentFrame = &const_cast<SwFlyInContentFrame&>(rFlyInContentFrame); pFlyInContentFrame->SetRefPoint( aAnchorPos, aRelAttr, aRelPos ); if( nObjWidth != aRectFnSet.GetWidth(pFlyInContentFrame->Frame()) ) { diff --git a/sw/source/core/text/frmform.cxx b/sw/source/core/text/frmform.cxx index dd34f2cb61f1..7cd5e09eea71 100644 --- a/sw/source/core/text/frmform.cxx +++ b/sw/source/core/text/frmform.cxx @@ -1923,7 +1923,7 @@ bool SwTextFrame::FormatQuick( bool bForceQuickFormat ) return false; } - if (m_pFollow && nStart != (static_cast<SwTextFrame*>(m_pFollow))->GetOfst()) + if (m_pFollow && nStart != static_cast<SwTextFrame*>(m_pFollow)->GetOfst()) return false; // can be caused by e.g. Orphans // We made it! diff --git a/sw/source/core/undo/rolbck.cxx b/sw/source/core/undo/rolbck.cxx index 39c0955b9e9d..0d1fe53bf690 100644 --- a/sw/source/core/undo/rolbck.cxx +++ b/sw/source/core/undo/rolbck.cxx @@ -108,7 +108,7 @@ OUString SwHistorySetFormat::GetDescription() const switch (m_pAttr->Which()) { case RES_BREAK: - switch ((static_cast<SvxFormatBreakItem &>(*m_pAttr)).GetBreak()) + switch (static_cast<SvxFormatBreakItem &>(*m_pAttr).GetBreak()) { case SvxBreak::PageBefore: case SvxBreak::PageAfter: @@ -226,7 +226,7 @@ void SwHistorySetText::SetInDoc( SwDoc* pDoc, bool ) if ( RES_TXTATR_CHARFMT == m_pAttr->Which() ) { // ask the Doc if the CharFormat still exists - if (!pDoc->GetCharFormats()->IsAlive((static_cast<SwFormatCharFormat&>(*m_pAttr)).GetCharFormat())) + if (!pDoc->GetCharFormats()->IsAlive(static_cast<SwFormatCharFormat&>(*m_pAttr).GetCharFormat())) return; // do not set, format does not exist } diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx index 4be99c3222b6..fda4e0f9c0e0 100644 --- a/sw/source/core/undo/unattr.cxx +++ b/sw/source/core/undo/unattr.cxx @@ -81,7 +81,7 @@ void SwUndoFormatAttrHelper::Modify( const SfxPoolItem* pOld, const SfxPoolItem* } else if ( RES_ATTRSET_CHG == pOld->Which() ) { if ( GetUndo() ) { SfxItemIter aIter( - *(static_cast<const SwAttrSetChg*>(pOld))->GetChgSet() ); + *static_cast<const SwAttrSetChg*>(pOld)->GetChgSet() ); const SfxPoolItem* pItem = aIter.GetCurItem(); while ( pItem ) { m_pUndo->PutAttr( *pItem ); diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx index 9027122be771..b32e64b99433 100644 --- a/sw/source/filter/ww8/wrtw8esh.cxx +++ b/sw/source/filter/ww8/wrtw8esh.cxx @@ -2290,7 +2290,7 @@ SwEscherEx::SwEscherEx(SvStream* pStrm, WW8Export& rWW8Wrt) if (SdrPage *pPage = pModel->GetPage(0)) { bSwapInPage = true; - (const_cast<SdrObject*>(pSdrObj))->SetPage(pPage); + const_cast<SdrObject*>(pSdrObj)->SetPage(pPage); } } } @@ -2298,7 +2298,7 @@ SwEscherEx::SwEscherEx(SvStream* pStrm, WW8Export& rWW8Wrt) nShapeId = AddSdrObject(*pSdrObj); if (bSwapInPage) - (const_cast<SdrObject*>(pSdrObj))->SetPage(nullptr); + const_cast<SdrObject*>(pSdrObj)->SetPage(nullptr); } #if OSL_DEBUG_LEVEL > 0 else diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index 7340b13dd32b..84c0248a94a1 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -1722,7 +1722,7 @@ void WW8Export::OutputField( const SwField* pField, ww::eField eFieldType, // retrieve reference destination - the name of the bookmark OUString aLinkStr; const sal_uInt16 nSubType = pField->GetSubType(); - const SwGetRefField& rRField = *(static_cast<const SwGetRefField*>(pField)); + const SwGetRefField& rRField = *static_cast<const SwGetRefField*>(pField); if ( nSubType == REF_SETREFATTR || nSubType == REF_BOOKMARK ) { diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index ee031c7b9a68..6be1868af08a 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -3939,7 +3939,7 @@ void SwWW8ImplReader::Read_CharShadow( sal_uInt16, const sal_uInt8* pData, shor NewAttr( SvxBrushItem( aSh.aColor, RES_CHRATR_BACKGROUND )); // Add a marker to the grabbag indicating that character background was imported from MSO shading - SfxGrabBagItem aGrabBag = *(static_cast<const SfxGrabBagItem*>(GetFormatAttr(RES_CHRATR_GRABBAG))); + SfxGrabBagItem aGrabBag = *static_cast<const SfxGrabBagItem*>(GetFormatAttr(RES_CHRATR_GRABBAG)); std::map<OUString, css::uno::Any>& rMap = aGrabBag.GetGrabBag(); rMap.insert(std::pair<OUString, css::uno::Any>("CharShadingMarker",uno::makeAny(true))); NewAttr(aGrabBag); @@ -3961,7 +3961,7 @@ void SwWW8ImplReader::Read_TextBackColor(sal_uInt16, const sal_uInt8* pData, sho NewAttr(SvxBrushItem(aColour, RES_CHRATR_BACKGROUND)); // Add a marker to the grabbag indicating that character background was imported from MSO shading - SfxGrabBagItem aGrabBag = *(static_cast<const SfxGrabBagItem*>(GetFormatAttr(RES_CHRATR_GRABBAG))); + SfxGrabBagItem aGrabBag = *static_cast<const SfxGrabBagItem*>(GetFormatAttr(RES_CHRATR_GRABBAG)); std::map<OUString, css::uno::Any>& rMap = aGrabBag.GetGrabBag(); rMap.insert(std::pair<OUString, css::uno::Any>("CharShadingMarker",uno::makeAny(true))); NewAttr(aGrabBag); diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index c006d4beef05..b2e1b62dab96 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -4327,7 +4327,7 @@ long WW8PLCFx_AtnBook::getHandle() const else { if (const void* p = m_pBook[0]->GetData(m_pBook[0]->GetIdx())) - return SVBT16ToShort(*(static_cast<const SVBT16*>(p))); + return SVBT16ToShort(*static_cast<const SVBT16*>(p)); else return LONG_MAX; } @@ -4459,7 +4459,7 @@ long WW8PLCFx_FactoidBook::getHandle() const else { if (const void* p = m_pBook[0]->GetData(m_pBook[0]->GetIdx())) - return SVBT16ToShort(*(static_cast<const SVBT16*>(p))); + return SVBT16ToShort(*static_cast<const SVBT16*>(p)); else return LONG_MAX; } diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index 5e58e5155071..d7d835b35c18 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -1323,7 +1323,7 @@ void SwPostItMgr::RemoveSidebarWin() { for(std::list<SwSidebarItem*>::iterator i = mvPostItFields.begin(); i != mvPostItFields.end() ; ++i) { - EndListening( *(const_cast<SfxBroadcaster*>((*i)->GetBroadCaster())) ); + EndListening( *const_cast<SfxBroadcaster*>((*i)->GetBroadCaster()) ); (*i)->pPostIt.disposeAndClear(); delete (*i); } diff --git a/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx b/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx index 16589d5f1f99..d61a4b775d02 100644 --- a/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx +++ b/sw/source/uibase/docvw/SidebarTxtControlAcc.cxx @@ -110,7 +110,7 @@ void SidebarTextEditSource::UpdateData() SfxBroadcaster& SidebarTextEditSource::GetBroadcaster() const { - return *( const_cast< SidebarTextEditSource* > (this) ); + return * const_cast< SidebarTextEditSource* > (this); } IMPL_LINK(SidebarTextEditSource, NotifyHdl, EENotify&, rNotify, void) diff --git a/sw/source/uibase/shells/langhelper.cxx b/sw/source/uibase/shells/langhelper.cxx index ca8feb6adcf2..6297c2e5d1af 100644 --- a/sw/source/uibase/shells/langhelper.cxx +++ b/sw/source/uibase/shells/langhelper.cxx @@ -413,12 +413,12 @@ namespace SwLangHelper if (nState > SfxItemState::DEFAULT && pItem) { // the item is set and can be used - nLang = (dynamic_cast<const SvxLanguageItem&>(*pItem)).GetLanguage(); + nLang = dynamic_cast<const SvxLanguageItem&>(*pItem).GetLanguage(); } else if (nState == SfxItemState::DEFAULT) { // since the attribute is not set: retrieve the default value - nLang = (dynamic_cast<const SvxLanguageItem&>(aSet.GetPool()->GetDefaultItem( nLangWhichId ))).GetLanguage(); + nLang = dynamic_cast<const SvxLanguageItem&>(aSet.GetPool()->GetDefaultItem( nLangWhichId )).GetLanguage(); } else if (nState == SfxItemState::DONTCARE) { diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index cc765f88feab..e4ce4a985098 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3260,7 +3260,7 @@ OUString SwXTextDocument::getTrackedChangeAuthors() OUString SwXTextDocument::getRulerState() { SwView* pView = pDocShell->GetView(); - return OUString::fromUtf8((dynamic_cast<SwCommentRuler&>(pView->GetHRuler())).CreateJsonNotification().c_str()); + return OUString::fromUtf8(dynamic_cast<SwCommentRuler&>(pView->GetHRuler()).CreateJsonNotification().c_str()); } OUString SwXTextDocument::getPostIts() |