summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorZdibák Zoltán <zdibakzoltan@gmail.com>2018-10-30 18:29:02 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-10-31 02:16:50 +0100
commit949e16267ba5338f58bae353806c36f6eec55fcc (patch)
treecc2c4b7df5c6ee1d078bf9e39263fe97b54499e2 /framework
parentRedundantAssignment variable aResult1 (diff)
downloadcore-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.cxx4
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& )
{