summaryrefslogtreecommitdiff
path: root/configmgr/source/rootaccess.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr/source/rootaccess.cxx')
-rw-r--r--configmgr/source/rootaccess.cxx23
1 files changed, 12 insertions, 11 deletions
diff --git a/configmgr/source/rootaccess.cxx b/configmgr/source/rootaccess.cxx
index 17c9f111a27a..a3804fa47d4d 100644
--- a/configmgr/source/rootaccess.cxx
+++ b/configmgr/source/rootaccess.cxx
@@ -75,17 +75,18 @@ void RootAccess::initBroadcaster(
std::vector< css::util::ElementChange > changes;
initBroadcasterAndChanges(
modifications, broadcaster, changesListeners_.empty() ? nullptr : &changes);
- if (!changes.empty()) {
- css::util::ChangesSet set(comphelper::containerToSequence(changes));
- for (auto const& changesListener : changesListeners_)
- {
- cppu::OWeakObject* pSource = this;
- css::uno::Reference< css::uno::XInterface > xBase( pSource, css::uno::UNO_QUERY );
- broadcaster->addChangesNotification(
- changesListener,
- css::util::ChangesEvent(
- pSource, css::uno::Any( xBase ), set));
- }
+ if (changes.empty())
+ return;
+
+ css::util::ChangesSet set(comphelper::containerToSequence(changes));
+ for (auto const& changesListener : changesListeners_)
+ {
+ cppu::OWeakObject* pSource = this;
+ css::uno::Reference< css::uno::XInterface > xBase( pSource, css::uno::UNO_QUERY );
+ broadcaster->addChangesNotification(
+ changesListener,
+ css::util::ChangesEvent(
+ pSource, css::uno::Any( xBase ), set));
}
}