diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-11-12 11:55:28 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-12 14:47:00 +0100 |
commit | d73225119476de1826f648acca9e93bf6797e813 (patch) | |
tree | a8061daec36f66550b58515b4dc8131feea0ead5 /editeng/source/items/paraitem.cxx | |
parent | iOS, updated link flags (diff) | |
download | core-d73225119476de1826f648acca9e93bf6797e813.tar.gz core-d73225119476de1826f648acca9e93bf6797e813.zip |
use copy constructor to clone PoolItems
Change-Id: I2a45a62fd56cc5a768406c7a6e4c72456f962367
Reviewed-on: https://gerrit.libreoffice.org/44648
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/items/paraitem.cxx')
-rw-r--r-- | editeng/source/items/paraitem.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx index 52a8287cfecd..09b7e34106e8 100644 --- a/editeng/source/items/paraitem.cxx +++ b/editeng/source/items/paraitem.cxx @@ -1097,7 +1097,7 @@ SvxScriptSpaceItem::SvxScriptSpaceItem( bool bOn, const sal_uInt16 nId ) SfxPoolItem* SvxScriptSpaceItem::Clone( SfxItemPool * ) const { - return new SvxScriptSpaceItem( GetValue(), Which() ); + return new SvxScriptSpaceItem( *this ); } sal_uInt16 SvxScriptSpaceItem::GetVersion( sal_uInt16 nFFVer ) const @@ -1130,7 +1130,7 @@ SvxHangingPunctuationItem::SvxHangingPunctuationItem( SfxPoolItem* SvxHangingPunctuationItem::Clone( SfxItemPool * ) const { - return new SvxHangingPunctuationItem( GetValue(), Which() ); + return new SvxHangingPunctuationItem( *this ); } sal_uInt16 SvxHangingPunctuationItem::GetVersion( sal_uInt16 nFFVer ) const @@ -1163,7 +1163,7 @@ SvxForbiddenRuleItem::SvxForbiddenRuleItem( SfxPoolItem* SvxForbiddenRuleItem::Clone( SfxItemPool * ) const { - return new SvxForbiddenRuleItem( GetValue(), Which() ); + return new SvxForbiddenRuleItem( *this ); } sal_uInt16 SvxForbiddenRuleItem::GetVersion( sal_uInt16 nFFVer ) const @@ -1199,7 +1199,7 @@ SvxParaVertAlignItem::SvxParaVertAlignItem( Align nValue, SfxPoolItem* SvxParaVertAlignItem::Clone( SfxItemPool* ) const { - return new SvxParaVertAlignItem( GetValue(), Which() ); + return new SvxParaVertAlignItem( *this ); } sal_uInt16 SvxParaVertAlignItem::GetVersion( sal_uInt16 nFFVer ) const @@ -1259,7 +1259,7 @@ SvxParaGridItem::SvxParaGridItem( bool bOn, const sal_uInt16 nId ) SfxPoolItem* SvxParaGridItem::Clone( SfxItemPool * ) const { - return new SvxParaGridItem( GetValue(), Which() ); + return new SvxParaGridItem( *this ); } sal_uInt16 SvxParaGridItem::GetVersion( sal_uInt16 nFFVer ) const |