summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-04-23 20:15:48 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-05-06 12:27:42 +0200
commit31a5426172f4db94a3ae6d735bc79fc86140535e (patch)
tree5cfcd56cd5dbed0c40d891af5732d306819d7d90 /xmlhelp
parent325c571c22231978e5409902b514d2584186e0a0 (diff)
Use getXWeak in xmlhelp
Change-Id: Iaea6bf7c539d1ab5e0399e07531be08f2764f488 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150887 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx2
1 files changed, 1 insertions, 1 deletions
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<cppu::OWeakObject*>(new TVChildTarget( m_xContext ));
+ m_xHDS = cppu::getXWeak(new TVChildTarget( m_xContext ));
}
OUString hierview;