diff options
Diffstat (limited to 'sw/source/ui/fldui/changedb.cxx')
-rw-r--r-- | sw/source/ui/fldui/changedb.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx index d6eefe4b4cd6..12855877550c 100644 --- a/sw/source/ui/fldui/changedb.cxx +++ b/sw/source/ui/fldui/changedb.cxx @@ -94,7 +94,8 @@ void SwChangeDBDlg::FillDBPopup() Sequence< OUString > aDBNames = xDBContext->getElementNames(); const OUString* pDBNames = aDBNames.getConstArray(); sal_Int32 nDBCount = aDBNames.getLength(); - for(sal_Int32 i = 0; i < nDBCount; i++) + aAllDBNames.reserve(nDBCount); + for (sal_Int32 i = 0; i < nDBCount; i++) { aAllDBNames.push_back(pDBNames[i]); } |