summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/graphic/grfatr.cxx2
-rw-r--r--sw/source/core/layout/atrfrm.cxx20
2 files changed, 9 insertions, 13 deletions
diff --git a/sw/source/core/graphic/grfatr.cxx b/sw/source/core/graphic/grfatr.cxx
index 07f1b980db6b..545ee807ea0c 100644
--- a/sw/source/core/graphic/grfatr.cxx
+++ b/sw/source/core/graphic/grfatr.cxx
@@ -149,7 +149,7 @@ SfxPoolItem* SwCropGrf::Clone( SfxItemPool* ) const
SfxPoolItem* SwRotationGrf::Clone( SfxItemPool * ) const
{
- return new SwRotationGrf( GetValue(), aUnrotatedSize );
+ return new SwRotationGrf( *this );
}
bool SwRotationGrf::operator==( const SfxPoolItem& rCmp ) const
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index dcf2458da246..ab52c310ec93 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -1315,7 +1315,7 @@ bool SwFormatVertOrient::operator==( const SfxPoolItem& rAttr ) const
SfxPoolItem* SwFormatVertOrient::Clone( SfxItemPool* ) const
{
- return new SwFormatVertOrient( m_nYPos, m_eOrient, m_eRelation );
+ return new SwFormatVertOrient( *this );
}
bool SwFormatVertOrient::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
@@ -1409,7 +1409,7 @@ bool SwFormatHoriOrient::operator==( const SfxPoolItem& rAttr ) const
SfxPoolItem* SwFormatHoriOrient::Clone( SfxItemPool* ) const
{
- return new SwFormatHoriOrient( m_nXPos, m_eOrient, m_eRelation, m_bPosToggle );
+ return new SwFormatHoriOrient( *this );
}
bool SwFormatHoriOrient::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
@@ -1870,22 +1870,22 @@ bool SwFormatURL::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
SfxPoolItem* SwFormatEditInReadonly::Clone( SfxItemPool* ) const
{
- return new SwFormatEditInReadonly( Which(), GetValue() );
+ return new SwFormatEditInReadonly( *this );
}
SfxPoolItem* SwFormatLayoutSplit::Clone( SfxItemPool* ) const
{
- return new SwFormatLayoutSplit( GetValue() );
+ return new SwFormatLayoutSplit( *this );
}
SfxPoolItem* SwFormatRowSplit::Clone( SfxItemPool* ) const
{
- return new SwFormatRowSplit( GetValue() );
+ return new SwFormatRowSplit( *this );
}
SfxPoolItem* SwFormatNoBalancedColumns::Clone( SfxItemPool* ) const
{
- return new SwFormatNoBalancedColumns( GetValue() );
+ return new SwFormatNoBalancedColumns( *this );
}
void SwFormatNoBalancedColumns::dumpAsXml(xmlTextWriterPtr pWriter) const
@@ -2024,18 +2024,14 @@ bool SwFormatFootnoteEndAtTextEnd::PutValue( const uno::Any& rVal, sal_uInt8 nMe
SfxPoolItem* SwFormatFootnoteAtTextEnd::Clone( SfxItemPool* ) const
{
- SwFormatFootnoteAtTextEnd* pNew = new SwFormatFootnoteAtTextEnd;
- *pNew = *this;
- return pNew;
+ return new SwFormatFootnoteAtTextEnd(*this);
}
// class SwFormatEndAtTextEnd
SfxPoolItem* SwFormatEndAtTextEnd::Clone( SfxItemPool* ) const
{
- SwFormatEndAtTextEnd* pNew = new SwFormatEndAtTextEnd;
- *pNew = *this;
- return pNew;
+ return new SwFormatEndAtTextEnd(*this);
}
//class SwFormatChain