diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx index f739a67b11f4..b591ec3571cf 100644 --- a/desktop/source/deployment/registry/component/dp_component.cxx +++ b/desktop/source/deployment/registry/component/dp_component.cxx @@ -1108,10 +1108,10 @@ Reference raise_uno_process( url, comphelper::containerToSequence(args) ); } catch (...) { - OUString sMsg = "error starting process: " + url; + OUStringBuffer sMsg = "error starting process: " + url; for(const auto& arg : args) - sMsg += " " + arg; - throw uno::RuntimeException(sMsg); + sMsg.append(" ").append(arg); + throw uno::RuntimeException(sMsg.makeStringAndClear()); } try { return Reference(