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>
This commit is contained in:
Andrzej Hunt 2015-11-23 15:12:33 -08:00 committed by Noel Grandin
parent e4968cfb09
commit 65650d6432

View file

@ -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>(