From 05f47e6d9f0c442e481b2435cc5c2ef615ab347a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 11 Jul 2017 14:29:18 +0200 Subject: replace 'resize(size+1)' with emplace_back which is considerably faster if we're dealing with a std::list, and just easier on the eyes if we're dealing with a std::vector Change-Id: I373689205ebc048689f29ab80a7ee8551b20cc96 Reviewed-on: https://gerrit.libreoffice.org/39816 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/qa/extras/inc/swmodeltestbase.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/qa') diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index 75604978ceb4..7f258ab1baf7 100644 --- a/sw/qa/extras/inc/swmodeltestbase.hxx +++ b/sw/qa/extras/inc/swmodeltestbase.hxx @@ -622,7 +622,7 @@ protected: void setTestInteractionHandler(const char* pPassword, std::vector& rFilterOptions) { OUString sPassword = OUString::createFromAscii(pPassword); - rFilterOptions.resize(rFilterOptions.size() + 1); + rFilterOptions.emplace_back(); xInteractionHandler = rtl::Reference(new TestInteractionHandler(sPassword)); uno::Reference const xInteraction(xInteractionHandler.get()); rFilterOptions[0].Name = "InteractionHandler"; -- cgit