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.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx
index 02b0a237f005..5cee589c8cac 100644
--- a/xmlhelp/source/treeview/tvfactory.cxx
+++ b/xmlhelp/source/treeview/tvfactory.cxx
@@ -21,6 +21,7 @@
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
+#include <comphelper/processfactory.hxx>
#include "tvfactory.hxx"
#include "tvread.hxx"
@@ -34,8 +35,8 @@ using namespace com::sun::star::container;
-TVFactory::TVFactory( const uno::Reference< XMultiServiceFactory >& xMSF )
- : m_xMSF( xMSF )
+TVFactory::TVFactory( const uno::Reference< XComponentContext >& xContext )
+ : m_xContext( xContext )
{
}
@@ -157,7 +158,7 @@ TVFactory::createInstanceWithArguments(
if( ! m_xHDS.is() )
{
- cppu::OWeakObject* p = new TVChildTarget( m_xMSF );
+ cppu::OWeakObject* p = new TVChildTarget( m_xContext );
m_xHDS = Reference< XInterface >( p );
}
@@ -241,7 +242,7 @@ Reference< XInterface > SAL_CALL
TVFactory::CreateInstance(
const Reference< XMultiServiceFactory >& xMultiServiceFactory )
{
- XServiceInfo* xP = (XServiceInfo*) new TVFactory( xMultiServiceFactory );
+ XServiceInfo* xP = (XServiceInfo*) new TVFactory( comphelper::getComponentContext(xMultiServiceFactory) );
return Reference< XInterface >::query( xP );
}