summaryrefslogtreecommitdiff
path: root/unotools/source/config/eventcfg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/config/eventcfg.cxx')
-rw-r--r--unotools/source/config/eventcfg.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx
index e98cb00ffb2c..eaae708a8619 100644
--- a/unotools/source/config/eventcfg.cxx
+++ b/unotools/source/config/eventcfg.cxx
@@ -274,8 +274,7 @@ Any SAL_CALL GlobalEventConfig_Impl::getByName( const OUString& aName ) throw (c
Sequence< OUString > SAL_CALL GlobalEventConfig_Impl::getElementNames( ) throw (RuntimeException)
{
- const OUString* pRet = m_supportedEvents.empty() ? NULL : &m_supportedEvents[0];
- return uno::Sequence< OUString >(pRet, m_supportedEvents.size());
+ return uno::Sequence< OUString >(m_supportedEvents.data(), m_supportedEvents.size());
}
bool SAL_CALL GlobalEventConfig_Impl::hasByName( const OUString& aName ) throw (RuntimeException)