summaryrefslogtreecommitdiff
path: root/xmlhelp/source/treeview/tvfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlhelp/source/treeview/tvfactory.cxx')
-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;