desktop/source/deployment/registry/component/dp_component.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 65650d64324580e3b0abf6e0ca6ef270c730cf88
Author: Andrzej Hunt <andr...@ahunt.org>
Date:   Mon Nov 23 15:12:33 2015 -0800

    Use OUStringBuffer when constructing string in loop
    
    Change-Id: Ic29e301d0162d41ea5e38070e296610115735983
    Reviewed-on: https://gerrit.libreoffice.org/20191
    Reviewed-by: Noel Grandin <noelgran...@gmail.com>
    Tested-by: Noel Grandin <noelgran...@gmail.com>

diff --git a/desktop/source/deployment/registry/component/dp_component.cxx 
b/desktop/source/deployment/registry/component/dp_component.cxx
index f739a67..b591ec3 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>(
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to