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 /cui/source | |
parent | 3168c5e09f084e65a32b5865d975ea9a9524d7c3 (diff) |
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 'cui/source')
-rw-r--r-- | cui/source/options/connpoolsettings.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/dbregistersettings.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/connpoolsettings.cxx b/cui/source/options/connpoolsettings.cxx index 6bc676cfbe39..8dd0e483f673 100644 --- a/cui/source/options/connpoolsettings.cxx +++ b/cui/source/options/connpoolsettings.cxx @@ -77,7 +77,7 @@ namespace offapp SfxPoolItem* DriverPoolingSettingsItem::Clone( SfxItemPool * ) const { - return new DriverPoolingSettingsItem(Which(), m_aSettings); + return new DriverPoolingSettingsItem(*this); } diff --git a/cui/source/options/dbregistersettings.cxx b/cui/source/options/dbregistersettings.cxx index cd612bd78635..dc67c27f1ec3 100644 --- a/cui/source/options/dbregistersettings.cxx +++ b/cui/source/options/dbregistersettings.cxx @@ -48,7 +48,7 @@ namespace svx SfxPoolItem* DatabaseMapItem::Clone( SfxItemPool* ) const { - return new DatabaseMapItem( Which(), m_aRegistrations ); + return new DatabaseMapItem( *this ); } |