From 05baa27681a15da96e716a67be4f2010b76b3021 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 5 Oct 2026 15:40:54 +0200 Subject: [PATCH] domimplementation: Use rtl::Reference::get() instead of &* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using &* can be problematic if the pointer is null. In this case it doesn’t matter, but using Reference::get() is probably easier to understand anyway. This also paves the way for a later compiler plugin to check for this. Change-Id: I9c055228f21639ad4005d71a768b335b40eff7e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211843 Tested-by: Jenkins Reviewed-by: Neil Roberts --- unoxml/source/dom/domimplementation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unoxml/source/dom/domimplementation.cxx b/unoxml/source/dom/domimplementation.cxx index 0bd7e5940ac6..c9e5cade0338 100644 --- a/unoxml/source/dom/domimplementation.cxx +++ b/unoxml/source/dom/domimplementation.cxx @@ -33,7 +33,7 @@ namespace DOM // perhaps it would be helpful to know what the implementation should // do to answer this question... static rtl::Reference xDOMImplementation = new CDOMImplementation; - return &*xDOMImplementation; + return xDOMImplementation.get(); } // there is just 1 static instance, so these must not delete it!