summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 14:29:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 21:43:49 +0200
commit05f47e6d9f0c442e481b2435cc5c2ef615ab347a (patch)
treebfa2c4c29007a63d42a227456f2fc6717e79ccb3 /xmloff
parentf9b104abc1185d4f9f3af66f49ec9e39f85a1c36 (diff)
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>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/forms/propertyimport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx
index 1d0b76784f07..43564dd8866c 100644
--- a/xmloff/source/forms/propertyimport.cxx
+++ b/xmloff/source/forms/propertyimport.cxx
@@ -530,7 +530,7 @@ SvXMLImportContext* OListPropertyContext::CreateChildContext( sal_uInt16 _nPrefi
{
if ( token::IsXMLToken( _rLocalName, token::XML_LIST_VALUE ) )
{
- m_aListValues.resize( m_aListValues.size() + 1 );
+ m_aListValues.emplace_back();
return new OListValueContext( GetImport(), _nPrefix, _rLocalName, *m_aListValues.rbegin() );
}
else