diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-10-19 07:18:39 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-10-19 07:20:33 +0200 |
commit | 2b5a48da5969b1ed37f4480d843714d434feb5d9 (patch) | |
tree | 59a449af7f69a133bc8e1e76b8f9deb65425da02 /cui | |
parent | 664197d95becd516c3dac25a50439078ba61e051 (diff) |
sfx items: Kill the SFX_ITEMSET_GET macro.
Change-Id: I110a4f25646eb3f0fa93673c84dc67cf64a3b7a0
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/connpoolconfig.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/connpooloptions.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/dbregister.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/dbregisterednamesconfig.cxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/options/connpoolconfig.cxx b/cui/source/options/connpoolconfig.cxx index fcc33c2971c4..a1a76fd94cc0 100644 --- a/cui/source/options/connpoolconfig.cxx +++ b/cui/source/options/connpoolconfig.cxx @@ -150,7 +150,7 @@ namespace offapp bool bNeedCommit = false; // the global "enabled" flag - SFX_ITEMSET_GET( _rSourceItems, pEnabled, SfxBoolItem, SID_SB_POOLING_ENABLED, true ); + const SfxBoolItem* pEnabled = _rSourceItems.GetItem<SfxBoolItem>(SID_SB_POOLING_ENABLED); if (pEnabled) { sal_Bool bEnabled = pEnabled->GetValue(); @@ -159,7 +159,7 @@ namespace offapp } // the settings for the single drivers - SFX_ITEMSET_GET( _rSourceItems, pDriverSettings, DriverPoolingSettingsItem, SID_SB_DRIVER_TIMEOUTS, true ); + const DriverPoolingSettingsItem* pDriverSettings = _rSourceItems.GetItem<DriverPoolingSettingsItem>(SID_SB_DRIVER_TIMEOUTS); if (pDriverSettings) { OConfigurationNode aDriverSettings = aConnectionPoolRoot.openNode(getDriverSettingsNodeName()); diff --git a/cui/source/options/connpooloptions.cxx b/cui/source/options/connpooloptions.cxx index 04d1f32a7828..6321f2aa019d 100644 --- a/cui/source/options/connpooloptions.cxx +++ b/cui/source/options/connpooloptions.cxx @@ -345,14 +345,14 @@ namespace offapp void ConnectionPoolOptionsPage::implInitControls(const SfxItemSet& _rSet, bool /*_bFromReset*/) { // the enabled flag - SFX_ITEMSET_GET( _rSet, pEnabled, SfxBoolItem, SID_SB_POOLING_ENABLED, true ); + const SfxBoolItem* pEnabled = _rSet.GetItem<SfxBoolItem>(SID_SB_POOLING_ENABLED); OSL_ENSURE(pEnabled, "ConnectionPoolOptionsPage::implInitControls: missing the Enabled item!"); m_pEnablePooling->Check(pEnabled == nullptr || pEnabled->GetValue()); m_pEnablePooling->SaveValue(); // the settings for the single drivers - SFX_ITEMSET_GET( _rSet, pDriverSettings, DriverPoolingSettingsItem, SID_SB_DRIVER_TIMEOUTS, true ); + const DriverPoolingSettingsItem* pDriverSettings = _rSet.GetItem<DriverPoolingSettingsItem>(SID_SB_DRIVER_TIMEOUTS); if (pDriverSettings) m_pDriverList->Update(pDriverSettings->getSettings()); else diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx index d65a3d02fa95..393601dcdb4a 100644 --- a/cui/source/options/dbregister.cxx +++ b/cui/source/options/dbregister.cxx @@ -219,7 +219,7 @@ bool DbRegistrationOptionsPage::FillItemSet( SfxItemSet* rCoreSet ) void DbRegistrationOptionsPage::Reset( const SfxItemSet* rSet ) { // the settings for the single drivers - SFX_ITEMSET_GET( *rSet, pRegistrations, DatabaseMapItem, SID_SB_DB_REGISTER, true ); + const DatabaseMapItem* pRegistrations = rSet->GetItem<DatabaseMapItem>(SID_SB_DB_REGISTER); if ( !pRegistrations ) return; diff --git a/cui/source/options/dbregisterednamesconfig.cxx b/cui/source/options/dbregisterednamesconfig.cxx index 7fe44a7b9ff4..4de9bc15d70f 100644 --- a/cui/source/options/dbregisterednamesconfig.cxx +++ b/cui/source/options/dbregisterednamesconfig.cxx @@ -73,7 +73,7 @@ namespace svx void DbRegisteredNamesConfig::SetOptions(const SfxItemSet& _rSourceItems) { // the settings for the single drivers - SFX_ITEMSET_GET( _rSourceItems, pRegistrations, DatabaseMapItem, SID_SB_DB_REGISTER, true ); + const DatabaseMapItem* pRegistrations = _rSourceItems.GetItem<DatabaseMapItem>(SID_SB_DB_REGISTER); if ( !pRegistrations ) return; |