diff options
author | Zdibák Zoltán <zdibakzoltan@gmail.com> | 2018-10-30 18:29:02 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-10-31 02:16:50 +0100 |
commit | 949e16267ba5338f58bae353806c36f6eec55fcc (patch) | |
tree | cc2c4b7df5c6ee1d078bf9e39263fe97b54499e2 /framework | |
parent | RedundantAssignment variable aResult1 (diff) | |
download | core-949e16267ba5338f58bae353806c36f6eec55fcc.tar.gz core-949e16267ba5338f58bae353806c36f6eec55fcc.zip |
Reduced scope of the rDefaultElementType variable
Change-Id: I6a18502c933937b50a78389b04c5545644d2e3ba
Reviewed-on: https://gerrit.libreoffice.org/62638
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx index d6c2201a364f..866679cffc2a 100644 --- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx +++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx @@ -1513,10 +1513,12 @@ void SAL_CALL ModuleUIConfigurationManager::reload() try { UIElementType& rUserElementType = m_aUIElements[LAYER_USERDEFINED][i]; - UIElementType& rDefaultElementType = m_aUIElements[LAYER_DEFAULT][i]; if ( rUserElementType.bModified ) + { + UIElementType& rDefaultElementType = m_aUIElements[LAYER_DEFAULT][i]; impl_reloadElementTypeData( rUserElementType, rDefaultElementType, aRemoveNotifyContainer, aReplaceNotifyContainer ); + } } catch ( const Exception& ) { |