diff options
Diffstat (limited to 'stoc/source/javavm/javavm.cxx')
-rw-r--r-- | stoc/source/javavm/javavm.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index 68db4a793265..86d546462f7a 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -711,7 +711,8 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) m_xContext); const std::vector<OUString> & props = aJvm.getProperties(); std::vector<OUString> options; - for (auto const & i: props) + options.reserve(props.size()); + for (auto const& i : props) { options.push_back(i.startsWith("-") ? i : "-D" + i); } |