diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-04 11:40:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-04 14:51:07 +0200 |
commit | eeb1030c6455d4b45bdd4e535a3eafd809716e54 (patch) | |
tree | a4ef1f47835c5e6fb0ba4f46948e433c7c9f59c4 /desktop | |
parent | 3054a8c1c148aee9cb3feaa4e7b5edee010deead (diff) |
loplugin:unusedfields in cui..idl
Change-Id: Icb393cc0b2f79ded154e186ab6975b95e5126903
Reviewed-on: https://gerrit.libreoffice.org/39496
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_updatedata.hxx | 8 | ||||
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_updatedialog.cxx | 7 |
2 files changed, 3 insertions, 12 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_updatedata.hxx b/desktop/source/deployment/gui/dp_gui_updatedata.hxx index 4391e680c2d8..1e2c9db47f8a 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedata.hxx +++ b/desktop/source/deployment/gui/dp_gui_updatedata.hxx @@ -36,7 +36,7 @@ namespace dp_gui { struct UpdateData { explicit UpdateData( css::uno::Reference< css::deployment::XPackage > const & aExt): - bIsShared(false), aInstalledPackage(aExt), aUpdateSource(nullptr), m_nID(0) {}; + bIsShared(false), aInstalledPackage(aExt), aUpdateSource(nullptr) {}; //When entries added to the listbox then there can be one for the user update and one //for the shared update. However, both list entries will contain the same UpdateData. @@ -67,11 +67,7 @@ struct UpdateData //The locale extension which is used as update for the user or shared repository. //If set then the data for the online update (aUpdateInfo, sLocalURL, sWebsiteURL) //are to be ignored. - css::uno::Reference< css::deployment::XPackage > - aUpdateSource; - - // ID to find this entry in the update listbox - sal_uInt16 m_nID; + css::uno::Reference< css::deployment::XPackage > aUpdateSource; }; } diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx index a3d40f08f28d..fe328d10f5b3 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx +++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx @@ -149,20 +149,18 @@ struct UpdateDialog::DisabledUpdate { uno::Sequence< OUString > unsatisfiedDependencies; // We also want to show release notes and publisher for disabled updates css::uno::Reference< css::xml::dom::XNode > aUpdateInfo; - sal_uInt16 m_nID; }; struct UpdateDialog::SpecificError { OUString name; OUString message; - sal_uInt16 m_nID; }; struct UpdateDialog::IgnoredUpdate { OUString sExtensionID; OUString sVersion; - bool bRemoved; + bool bRemoved; IgnoredUpdate( const OUString &rExtensionID, const OUString &rVersion ); }; @@ -727,7 +725,6 @@ void UpdateDialog::addEnabledUpdate( OUString const & name, sal_uInt16 nIndex = sal::static_int_cast< sal_uInt16 >( m_enabledUpdates.size() ); UpdateDialog::Index *pEntry = new UpdateDialog::Index( ENABLED_UPDATE, nIndex, name ); - data.m_nID = m_nLastID; m_nLastID += 1; m_enabledUpdates.push_back( data ); @@ -753,7 +750,6 @@ void UpdateDialog::addDisabledUpdate( UpdateDialog::DisabledUpdate & data ) sal_uInt16 nIndex = sal::static_int_cast< sal_uInt16 >( m_disabledUpdates.size() ); UpdateDialog::Index *pEntry = new UpdateDialog::Index( DISABLED_UPDATE, nIndex, data.name ); - data.m_nID = m_nLastID; m_nLastID += 1; m_disabledUpdates.push_back( data ); @@ -769,7 +765,6 @@ void UpdateDialog::addSpecificError( UpdateDialog::SpecificError & data ) sal_uInt16 nIndex = sal::static_int_cast< sal_uInt16 >( m_specificErrors.size() ); UpdateDialog::Index *pEntry = new UpdateDialog::Index( SPECIFIC_ERROR, nIndex, data.name ); - data.m_nID = m_nLastID; m_nLastID += 1; m_specificErrors.push_back( data ); |