comphelper/source/processfactory/processfactory.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d5f5c980c9972b2b5326431449f094c52eafea92
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Oct 26 14:49:29 2023 +0200
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Nov 17 12:08:49 2023 +0100

    cool#6893 cache the process component context
    
    which we look up rather a lot
    
    Change-Id: Ie8bcf161a1d7a299a404f749cf08a13f33f7f1cc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158506
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    (cherry picked from commit 160f7af7786185554d6f857e8d0016c3df7c0e84)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158449
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/comphelper/source/processfactory/processfactory.cxx 
b/comphelper/source/processfactory/processfactory.cxx
index fc8586471db1..c503b8ff1e88 100644
--- a/comphelper/source/processfactory/processfactory.cxx
+++ b/comphelper/source/processfactory/processfactory.cxx
@@ -109,7 +109,8 @@ Reference< XComponentContext > getComponentContext(
 
 Reference< XComponentContext > getProcessComponentContext()
 {
-    return getComponentContext( getProcessServiceFactory() );
+    static const uno::Reference<XComponentContext> processComponentContext = 
getComponentContext( getProcessServiceFactory() );
+    return processComponentContext;
 }
 
 } // namespace comphelper

Reply via email to