summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-11-23 15:12:33 -0800
committerNoel Grandin <noelgrandin@gmail.com>2016-01-06 11:19:28 +0000
commit65650d64324580e3b0abf6e0ca6ef270c730cf88 (patch)
tree686237ced2b7739ad80b379f4afb0adc0ffaf49f
parente4968cfb09e5d67757db6e91750a1a14f16f5792 (diff)
Use OUStringBuffer when constructing string in loop
Change-Id: Ic29e301d0162d41ea5e38070e296610115735983 Reviewed-on: https://gerrit.libreoffice.org/20191 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--desktop/source/deployment/registry/component/dp_component.cxx6
1 files changed, 3 insertions, 3 deletions
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<XComponentContext> 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<XComponentContext>(