summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/SfxDocumentMetaData.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/SfxDocumentMetaData.cxx')
-rw-r--r--sfx2/source/doc/SfxDocumentMetaData.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index 2cab0ea97fc3..dee9a73bbdc1 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -63,7 +63,7 @@
#include <tools/datetime.hxx>
#include <osl/mutex.hxx>
#include <cppuhelper/basemutex.hxx>
-#include <cppuhelper/interfacecontainer.hxx>
+#include <comphelper/interfacecontainer2.hxx>
#include <comphelper/storagehelper.hxx>
#include <unotools/mediadescriptor.hxx>
#include <comphelper/sequence.hxx>
@@ -292,7 +292,7 @@ protected:
const css::uno::Reference< css::uno::XComponentContext > m_xContext;
/// for notification
- ::cppu::OInterfaceContainerHelper m_NotifyListeners;
+ ::comphelper::OInterfaceContainerHelper2 m_NotifyListeners;
/// flag: false means not initialized yet, or disposed
bool m_isInitialized;
/// flag
@@ -2274,12 +2274,11 @@ void SfxDocumentMetaData::createUserDefined()
m_xUserDefined, css::uno::UNO_QUERY);
if (xMB.is())
{
- const css::uno::Sequence<css::uno::Reference<css::uno::XInterface> >
+ const std::vector<css::uno::Reference<css::uno::XInterface> >
listeners(m_NotifyListeners.getElements());
- for (css::uno::Reference< css::uno::XInterface > const * iter = listeners.begin(); iter != listeners.end(); ++iter) {
+ for (const auto& l : listeners) {
xMB->addModifyListener(
- css::uno::Reference< css::util::XModifyListener >(*iter,
- css::uno::UNO_QUERY));
+ css::uno::Reference< css::util::XModifyListener >(l, css::uno::UNO_QUERY) );
}
}
}