[Libreoffice-commits] core.git: scripting/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 14 20:15:37 UTC 2020
scripting/source/vbaevents/eventhelper.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit f76f15f02a30d20be1c4816d72f7ad7fb4fa20d3
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Oct 11 12:25:30 2020 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Wed Oct 14 22:14:59 2020 +0200
Replace list by vector in scripting/eventhelpher
Change-Id: Ia7a24649cc8f204fe412b240df02b3a814ed491c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104180
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
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 );
More information about the Libreoffice-commits
mailing list