[Libreoffice-commits] core.git: desktop/source

Andrzej Hunt andrzej at ahunt.org
Wed Jan 6 03:19:50 PST 2016


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

New commits:
commit 65650d64324580e3b0abf6e0ca6ef270c730cf88
Author: Andrzej Hunt <andrzej at 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 <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at 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>(


More information about the Libreoffice-commits mailing list