summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-19 13:08:47 +0200
committerNoel Grandin <noel@peralex.com>2013-03-20 07:32:53 +0200
commita066525b42a1ab8dc60e10a5d62819c259904f32 (patch)
tree0c21130ff82a482ab80de0fcc3c73be0125d06f5 /svx/source
parent6999a50efaaf802ccd4c7eb7957af17cc32602be (diff)
fdo#46808, Convert a bunch of comphelper::ComponentContext stuff
.. to Reference<XComponentContext> mostly in the dbaccess module, but it also affected some other modules. Change-Id: I09b3f6fe7a9b33498b11d98b5521b5aeeb8882be
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/form/xfm_addcondition.cxx5
-rw-r--r--svx/source/inc/xfm_addcondition.hxx2
2 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/form/xfm_addcondition.cxx b/svx/source/form/xfm_addcondition.cxx
index f051399138e4..ec085745639a 100644
--- a/svx/source/form/xfm_addcondition.cxx
+++ b/svx/source/form/xfm_addcondition.cxx
@@ -20,6 +20,7 @@
#include "xfm_addcondition.hxx"
+#include <comphelper/processfactory.hxx>
#include <cppuhelper/typeprovider.hxx>
#include "datanavi.hxx"
#include <vcl/msgbox.hxx>
@@ -66,7 +67,7 @@ namespace svxform
//= OAddConditionDialog
//====================================================================
//--------------------------------------------------------------------
- OAddConditionDialog::OAddConditionDialog( const Reference< XMultiServiceFactory >& _rxORB )
+ OAddConditionDialog::OAddConditionDialog( const Reference< XComponentContext >& _rxORB )
:OAddConditionDialogBase( _rxORB )
{
registerProperty(
@@ -121,7 +122,7 @@ namespace svxform
//-------------------------------------------------------------------------
Reference< XInterface > SAL_CALL OAddConditionDialog::Create( const Reference< XMultiServiceFactory >& _rxFactory )
{
- return *( new OAddConditionDialog( _rxFactory ) );
+ return *( new OAddConditionDialog( comphelper::getComponentContext(_rxFactory) ) );
}
//-------------------------------------------------------------------------
diff --git a/svx/source/inc/xfm_addcondition.hxx b/svx/source/inc/xfm_addcondition.hxx
index db5ec39d9d0c..02e5adf7ec18 100644
--- a/svx/source/inc/xfm_addcondition.hxx
+++ b/svx/source/inc/xfm_addcondition.hxx
@@ -52,7 +52,7 @@ namespace svxform
SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
protected:
- OAddConditionDialog( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB );
+ OAddConditionDialog( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB );
// XTypeProvider
virtual com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(com::sun::star::uno::RuntimeException);