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:
parent
e4968cfb09
commit
65650d6432
1 changed files with 3 additions and 3 deletions
|
@ -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>(
|
||||
|
|
Loading…
Reference in a new issue