From 31a5426172f4db94a3ae6d735bc79fc86140535e Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 23 Apr 2023 20:15:48 +0300 Subject: [PATCH] Use getXWeak in xmlhelp Change-Id: Iaea6bf7c539d1ab5e0399e07531be08f2764f488 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150887 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- xmlhelp/source/treeview/tvfactory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx index 04bba6e6f663..99a55580f9e0 100644 --- a/xmlhelp/source/treeview/tvfactory.cxx +++ b/xmlhelp/source/treeview/tvfactory.cxx @@ -84,7 +84,7 @@ TVFactory::createInstanceWithArguments( { if( ! m_xHDS.is() ) { - m_xHDS = static_cast(new TVChildTarget( m_xContext )); + m_xHDS = cppu::getXWeak(new TVChildTarget( m_xContext )); } OUString hierview;