unotools/util/utl.component |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 99c0fcc777cb87026652163fa4d8fdacc584693b
Author:     Neil Roberts <[email protected]>
AuthorDate: Sat Feb 21 17:57:19 2026 +0100
Commit:     Neil Roberts <[email protected]>
CommitDate: Mon Feb 23 16:39:06 2026 +0100

    tdf#170930 Add namespace used for theServiceDocumenter to component
    
    The namespace for theServiceDocumenter singleton doesn’t match the name
    of the component declared in utl.component so if you tried to use the
    automatically generated getter in C++ or the getter from BASIC then it
    wouldn’t work. This patch adds a second singleton name to the
    component to make the getter work without breaking existing code
    that is using getValueByName with the old name.
    
    Change-Id: I650b0766a0adf3f3c915e2337e2a7ebbddd9fc72
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199955
    Tested-by: Jenkins
    Reviewed-by: Neil Roberts <[email protected]>

diff --git a/unotools/util/utl.component b/unotools/util/utl.component
index cd31d1c3e3cc..cf09a24ff13b 100644
--- a/unotools/util/utl.component
+++ b/unotools/util/utl.component
@@ -27,5 +27,10 @@
     constructor="unotools_ServiceDocument_get_implementation"
     single-instance="true">
     <singleton name="com.sun.star.util.theServiceDocumenter"/>
+    <!-- tdf#170930 the singleton was created in the “script” namespace 
whereas the name in the
+         component file contained “util”. Let’s keep both names in order to 
make the singleton
+         getter work without breaking it for people that are used to using the 
old name with
+         getValueByName -->
+    <singleton name="com.sun.star.script.theServiceDocumenter"/>
   </implementation>
 </component>

Reply via email to