From 05f47e6d9f0c442e481b2435cc5c2ef615ab347a Mon Sep 17 00:00:00 2001
From: Noel Grandin <noel.grandin@collabora.co.uk>
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 <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
---
 sdext/source/presenter/PresenterAccessibility.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'sdext')

diff --git a/sdext/source/presenter/PresenterAccessibility.cxx b/sdext/source/presenter/PresenterAccessibility.cxx
index 849590cab476..a2764c1b7d2e 100644
--- a/sdext/source/presenter/PresenterAccessibility.cxx
+++ b/sdext/source/presenter/PresenterAccessibility.cxx
@@ -1290,7 +1290,7 @@ void AccessibleRelationSet::AddRelation (
     const sal_Int16 nRelationType,
     const Reference<XInterface>& rxObject)
 {
-    maRelations.resize(maRelations.size()+1);
+    maRelations.emplace_back();
     maRelations.back().RelationType = nRelationType;
     maRelations.back().TargetSet.realloc(1);
     maRelations.back().TargetSet[0] = rxObject;
-- 
cgit