diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-03 07:06:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-06-03 09:38:58 +0200 |
commit | 23390e3096c2db2526cbc0867e3b2063e06f6150 (patch) | |
tree | 9d25edc73dbf23c54a65897fde5a7440f4984442 /extensions/source | |
parent | c6595e781cf20ab2825e9a2bd8592688f26448e3 (diff) |
Revert "Initialize vector directly with the already known count number"
This reverts commit da9fe0da11687bfc4c0eff2197286da67d6206c2.
Reason for revert: wrong result since there'll be first 4 by default initializations then an extra reserve allocation.
Change-Id: If480243e81db405d6a984b8450a219e486f1a1ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116465
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/propctrlr/formlinkdialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/formlinkdialog.cxx b/extensions/source/propctrlr/formlinkdialog.cxx index f367179b7a1c..7f2d794b4010 100644 --- a/extensions/source/propctrlr/formlinkdialog.cxx +++ b/extensions/source/propctrlr/formlinkdialog.cxx @@ -185,8 +185,8 @@ namespace pcr void FormLinkDialog::commitLinkPairs() { // collect the field lists from the rows - std::vector< OUString > aDetailFields(4); - std::vector< OUString > aMasterFields(4); + std::vector< OUString > aDetailFields; aDetailFields.reserve( 4 ); + std::vector< OUString > aMasterFields; aMasterFields.reserve( 4 ); const FieldLinkRow* aRows[] = { m_xRow1.get(), m_xRow2.get(), m_xRow3.get(), m_xRow4.get() |