summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-10-12 11:44:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-10-23 13:06:14 +0200
commitb30ee83058793ea8fbb020e5ac8f118bd20853d5 (patch)
treec187507f36c6288e5f4ede78a0d5e33876f7b3f1 /svx
parent5e48667f6bdd2f5e05b3f41d080fda06bd3d7c16 (diff)
fdo#46808, use service constructor for beans::Introspection
Change-Id: Ieb49277020d31779979d8eb508391d6f8b97bf94
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/fmshimp.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index f9506a3e480c..813d43629c7c 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -59,6 +59,7 @@
#include <com/sun/star/awt/XCheckBox.hpp>
#include <com/sun/star/awt/XListBox.hpp>
#include <com/sun/star/awt/XTextComponent.hpp>
+#include <com/sun/star/beans/Introspection.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
@@ -84,7 +85,6 @@
#include <com/sun/star/util/XModifyBroadcaster.hpp>
#include <com/sun/star/util/XNumberFormatter.hpp>
#include <com/sun/star/view/XSelectionSupplier.hpp>
-#include <com/sun/star/beans/XIntrospection.hpp>
#include <comphelper/extract.hxx>
#include <comphelper/evtmethodhelper.hxx>
@@ -385,16 +385,16 @@ namespace
Sequence< Type> aModelListeners;
Sequence< Type> aControlListeners;
- Reference< XIntrospection> xModelIntrospection(::comphelper::getProcessServiceFactory()->createInstance(::rtl::OUString("com.sun.star.beans.Introspection")), UNO_QUERY);
- Reference< XIntrospection> xControlIntrospection(::comphelper::getProcessServiceFactory()->createInstance(::rtl::OUString("com.sun.star.beans.Introspection")), UNO_QUERY);
+ Reference< XIntrospection> xModelIntrospection = Introspection::create(::comphelper::getProcessComponentContext());
+ Reference< XIntrospection> xControlIntrospection = Introspection::create(::comphelper::getProcessComponentContext());
- if (xModelIntrospection.is() && xModel.is())
+ if (xModel.is())
{
Any aModel(makeAny(xModel));
aModelListeners = xModelIntrospection->inspect(aModel)->getSupportedListeners();
}
- if (xControlIntrospection.is() && xControl.is())
+ if (xControl.is())
{
Any aControl(makeAny(xControl));
aControlListeners = xControlIntrospection->inspect(aControl)->getSupportedListeners();