diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/filtask.cxx | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx index db1e4ca19dda..3c54c50b8ed4 100644 --- a/ucb/source/ucp/file/filtask.cxx +++ b/ucb/source/ucp/file/filtask.cxx @@ -2717,21 +2717,24 @@ TaskManager::getContentExchangedEventListeners( const OUString& aOldPrefix, m_aContent.erase( itold ); - if( itnew != m_aContent.end() && !itnew->second.notifier.empty() ) + if (itnew != m_aContent.end()) { - std::vector<Notifier*>& listOfNotifiers = itnew->second.notifier; - for (auto const& pointer : listOfNotifiers) + if (!itnew->second.notifier.empty()) { - std::unique_ptr<ContentEventNotifier> notifier = pointer->cEXC( aNewName ); - if( notifier ) - aVector.push_back( std::move(notifier) ); + std::vector<Notifier*>& listOfNotifiers = itnew->second.notifier; + for (auto const& pointer : listOfNotifiers) + { + std::unique_ptr<ContentEventNotifier> notifier = pointer->cEXC( aNewName ); + if( notifier ) + aVector.push_back( std::move(notifier) ); + } } - } - // Merge with preexisting notifiers - // However, these may be in status BaseContent::Deleted - for( const auto& rCopyPtr : copyList ) - itnew->second.notifier.push_back( rCopyPtr ); + // Merge with preexisting notifiers + // However, these may be in status BaseContent::Deleted + for( const auto& rCopyPtr : copyList ) + itnew->second.notifier.push_back( rCopyPtr ); + } } } } |