diff options
Diffstat (limited to 'sw/source/core/attr')
-rw-r--r-- | sw/source/core/attr/cellatr.cxx | 6 | ||||
-rw-r--r-- | sw/source/core/attr/fmtfollowtextflow.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/attr/format.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/attr/hints.cxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/attr/cellatr.cxx b/sw/source/core/attr/cellatr.cxx index f0fa52017d38..908a9d2a5553 100644 --- a/sw/source/core/attr/cellatr.cxx +++ b/sw/source/core/attr/cellatr.cxx @@ -49,7 +49,7 @@ bool SwTableBoxNumFormat::operator==( const SfxPoolItem& rAttr ) const return GetValue() == static_cast<const SwTableBoxNumFormat&>(rAttr).GetValue(); } -SfxPoolItem* SwTableBoxNumFormat::Clone( SfxItemPool* ) const +SwTableBoxNumFormat* SwTableBoxNumFormat::Clone( SfxItemPool* ) const { return new SwTableBoxNumFormat( GetValue() ); } @@ -68,7 +68,7 @@ bool SwTableBoxFormula::operator==( const SfxPoolItem& rAttr ) const m_pDefinedIn == static_cast<const SwTableBoxFormula&>(rAttr).m_pDefinedIn; } -SfxPoolItem* SwTableBoxFormula::Clone( SfxItemPool* ) const +SwTableBoxFormula* SwTableBoxFormula::Clone( SfxItemPool* ) const { // switch to external rendering SwTableBoxFormula* pNew = new SwTableBoxFormula( GetFormula() ); @@ -218,7 +218,7 @@ bool SwTableBoxValue::operator==( const SfxPoolItem& rAttr ) const : ( m_nValue == rOther.m_nValue ); } -SfxPoolItem* SwTableBoxValue::Clone( SfxItemPool* ) const +SwTableBoxValue* SwTableBoxValue::Clone( SfxItemPool* ) const { return new SwTableBoxValue( m_nValue ); } diff --git a/sw/source/core/attr/fmtfollowtextflow.cxx b/sw/source/core/attr/fmtfollowtextflow.cxx index f979fd27d499..8b04869afc5a 100644 --- a/sw/source/core/attr/fmtfollowtextflow.cxx +++ b/sw/source/core/attr/fmtfollowtextflow.cxx @@ -22,7 +22,7 @@ #include <sal/log.hxx> -SfxPoolItem* SwFormatFollowTextFlow::Clone( SfxItemPool * ) const +SwFormatFollowTextFlow* SwFormatFollowTextFlow::Clone( SfxItemPool * ) const { return new SwFormatFollowTextFlow(*this); } diff --git a/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx b/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx index 4182bb90a95a..21ceec2f0e68 100644 --- a/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx +++ b/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx @@ -47,7 +47,7 @@ bool SwFormatWrapInfluenceOnObjPos::operator==( const SfxPoolItem& rAttr ) const && mnOverlapVertOffset == rAttribute.mnOverlapVertOffset); } -SfxPoolItem* SwFormatWrapInfluenceOnObjPos::Clone( SfxItemPool * ) const +SwFormatWrapInfluenceOnObjPos* SwFormatWrapInfluenceOnObjPos::Clone( SfxItemPool * ) const { return new SwFormatWrapInfluenceOnObjPos(*this); } diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx index 50180ce53eec..f030e78ec9e0 100644 --- a/sw/source/core/attr/format.cxx +++ b/sw/source/core/attr/format.cxx @@ -792,7 +792,7 @@ std::shared_ptr<SvxBrushItem> SwFormat::makeBackgroundBrushItem(bool bInP) const return getSvxBrushItemFromSourceSet(m_aSet, RES_BACKGROUND, bInP); } - return std::shared_ptr<SvxBrushItem>(static_cast<SvxBrushItem*>(m_aSet.GetBackground(bInP).Clone())); + return std::shared_ptr<SvxBrushItem>(m_aSet.GetBackground(bInP).Clone()); } drawinglayer::attribute::SdrAllFillAttributesHelperPtr SwFormat::getSdrAllFillAttributesHelper() const diff --git a/sw/source/core/attr/hints.cxx b/sw/source/core/attr/hints.cxx index 1b92d14c4f8d..b8d626e1b45f 100644 --- a/sw/source/core/attr/hints.cxx +++ b/sw/source/core/attr/hints.cxx @@ -143,7 +143,7 @@ bool SwMsgPoolItem::operator==( const SfxPoolItem& ) const return false; } -SfxPoolItem* SwMsgPoolItem::Clone( SfxItemPool* ) const +SwMsgPoolItem* SwMsgPoolItem::Clone( SfxItemPool* ) const { OSL_FAIL( "SwMsgPoolItem knows no Clone" ); return nullptr; |