diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-16 14:22:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-17 11:59:28 +0200 |
commit | b275246c30ce3796cd22f72cd82c58b5cf4c86f0 (patch) | |
tree | 45888716a37d4294697fa958be709e3af845c29d /framework/source | |
parent | f046fed2782f0d4244aff719ba70a56399a2583a (diff) |
loplugin:unusedfields in formula..registry
Change-Id: I031654d8bb4f1788d364ef4f8d3bf7a05fadb148
Reviewed-on: https://gerrit.libreoffice.org/54454
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source')
4 files changed, 13 insertions, 21 deletions
diff --git a/framework/source/accelerators/moduleacceleratorconfiguration.cxx b/framework/source/accelerators/moduleacceleratorconfiguration.cxx index 699de38760b4..65534a31a1e2 100644 --- a/framework/source/accelerators/moduleacceleratorconfiguration.cxx +++ b/framework/source/accelerators/moduleacceleratorconfiguration.cxx @@ -55,7 +55,6 @@ private: /** identify the application module, where this accelerator configuration cache should work on. */ OUString m_sModule; - OUString m_sLocale; public: @@ -106,7 +105,7 @@ ModuleAcceleratorConfiguration::ModuleAcceleratorConfiguration( { ::comphelper::SequenceAsHashMap lArgs(lArguments); m_sModule = lArgs.getUnpackedValueOrDefault("ModuleIdentifier", OUString()); - m_sLocale = lArgs.getUnpackedValueOrDefault("Locale", OUString("x-default")); + // OUString sLocale = lArgs.getUnpackedValueOrDefault("Locale", OUString("x-default")); } if (m_sModule.isEmpty()) diff --git a/framework/source/jobs/jobresult.cxx b/framework/source/jobs/jobresult.cxx index c9f5a0218af2..2c7e4d4a08ea 100644 --- a/framework/source/jobs/jobresult.cxx +++ b/framework/source/jobs/jobresult.cxx @@ -35,7 +35,6 @@ namespace framework{ but it marks this new instance as non valid! */ JobResult::JobResult() - : m_bDeactivate(false) { // reset the flag mask! // It will reset the accessible state of this object. @@ -87,12 +86,7 @@ JobResult::JobResult() the job result */ JobResult::JobResult( /*IN*/ const css::uno::Any& aResult ) - : m_bDeactivate(false) { - // safe the pure result - // May someone need it later ... - m_aPureResult = aResult; - // reset the flag mask! // It will reset the accessible state of this object. // That can be useful if something will fail here ... @@ -106,8 +100,14 @@ JobResult::JobResult( /*IN*/ const css::uno::Any& aResult ) ::comphelper::SequenceAsHashMap::const_iterator pIt = aProtocol.find(JobConst::ANSWER_DEACTIVATE_JOB()); if (pIt != aProtocol.end()) { - pIt->second >>= m_bDeactivate; - if (m_bDeactivate) + /** + an executed job can force his deactivation + But we provide this information here only. + Doing so is part of any user of us. + */ + bool bDeactivate; + pIt->second >>= bDeactivate; + if (bDeactivate) m_eParts |= E_DEACTIVATE; } @@ -134,10 +134,8 @@ JobResult::JobResult( /*IN*/ const css::uno::Any& aResult ) */ JobResult::JobResult( const JobResult& rCopy ) { - m_aPureResult = rCopy.m_aPureResult; m_eParts = rCopy.m_eParts; m_lArguments = rCopy.m_lArguments; - m_bDeactivate = rCopy.m_bDeactivate; m_aDispatchResult = rCopy.m_aDispatchResult; } @@ -160,10 +158,8 @@ JobResult::~JobResult() JobResult& JobResult::operator=( const JobResult& rCopy ) { SolarMutexGuard g; - m_aPureResult = rCopy.m_aPureResult; m_eParts = rCopy.m_eParts; m_lArguments = rCopy.m_lArguments; - m_bDeactivate = rCopy.m_bDeactivate; m_aDispatchResult = rCopy.m_aDispatchResult; return *this; } diff --git a/framework/source/jobs/joburl.cxx b/framework/source/jobs/joburl.cxx index 64b4745ede9a..307f6c9cdc93 100644 --- a/framework/source/jobs/joburl.cxx +++ b/framework/source/jobs/joburl.cxx @@ -65,7 +65,6 @@ JobURL::JobURL( /*IN*/ const OUString& sURL ) { // set the part value m_sEvent = sPartValue; - m_sEventArgs = sPartArguments; m_eRequest |= E_EVENT; } else @@ -77,7 +76,6 @@ JobURL::JobURL( /*IN*/ const OUString& sURL ) { // set the part value m_sAlias = sPartValue; - m_sAliasArgs = sPartArguments; m_eRequest |= E_ALIAS; } else @@ -89,7 +87,6 @@ JobURL::JobURL( /*IN*/ const OUString& sURL ) { // set the part value m_sService = sPartValue; - m_sServiceArgs = sPartArguments; m_eRequest |= E_SERVICE; } } diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx index 92dfa66c1a00..26e462495e16 100644 --- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx +++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx @@ -210,7 +210,6 @@ private: OUString m_aPropUIName; OUString m_aPropResourceURL; OUString m_aModuleIdentifier; - OUString m_aModuleShortName; css::uno::Reference< css::embed::XTransactedObject > m_xUserRootCommit; css::uno::Reference< css::uno::XComponentContext > m_xContext; osl::Mutex m_mutex; @@ -846,13 +845,14 @@ ModuleUIConfigurationManager::ModuleUIConfigurationManager( SolarMutexGuard g; - if( aArguments.getLength() == 2 && (aArguments[0] >>= m_aModuleShortName) && (aArguments[1] >>= m_aModuleIdentifier)) + OUString aModuleShortName; + if( aArguments.getLength() == 2 && (aArguments[0] >>= aModuleShortName) && (aArguments[1] >>= m_aModuleIdentifier)) { } else { ::comphelper::SequenceAsHashMap lArgs(aArguments); - m_aModuleShortName = lArgs.getUnpackedValueOrDefault("ModuleShortName", OUString()); + aModuleShortName = lArgs.getUnpackedValueOrDefault("ModuleShortName", OUString()); m_aModuleIdentifier = lArgs.getUnpackedValueOrDefault("ModuleIdentifier", OUString()); } @@ -873,7 +873,7 @@ ModuleUIConfigurationManager::ModuleUIConfigurationManager( m_pStorageHandler[i].reset( new PresetHandler( m_xContext ) ); m_pStorageHandler[i]->connectToResource( PresetHandler::E_MODULES, aResourceType, // this path won't be used later... see next lines! - m_aModuleShortName, + aModuleShortName, css::uno::Reference< css::embed::XStorage >()); // no document root used here! } } |