diff options
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/vbaevents/eventhelper.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index 5fdbe8c078cf..31e7a1bf80d2 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -67,7 +67,7 @@ #include <cppuhelper/supportsservice.hxx> #include <comphelper/evtmethodhelper.hxx> -#include <list> +#include <vector> #include <unordered_map> using namespace ::com::sun::star; @@ -172,7 +172,7 @@ struct TranslateInfo typedef std::unordered_map< OUString, - std::list< TranslateInfo > > EventInfoHash; + std::vector< TranslateInfo > > EventInfoHash; namespace { @@ -273,14 +273,14 @@ static EventInfoHash& getEventTransInfo() while (i < nCount) { sEventInfo = pTransProp->sEventInfo; - std::list< TranslateInfo > infoList; + std::vector< TranslateInfo > infoList; do { infoList.push_back( pTransProp->aTransInfo ); pTransProp++; i++; }while(i < nCount && sEventInfo == pTransProp->sEventInfo); - tmp[sEventInfo] = infoList; + tmp[sEventInfo] = std::move(infoList); } return tmp; }(); @@ -382,7 +382,7 @@ ScriptEventHelper::~ScriptEventHelper() Sequence< OUString > ScriptEventHelper::getEventListeners() const { - std::list< OUString > eventMethods; + std::vector< OUString > eventMethods; Reference< beans::XIntrospection > xIntrospection = beans::theIntrospection::get( m_xCtx ); |