summaryrefslogtreecommitdiff
path: root/stoc
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 /stoc
parent5e48667f6bdd2f5e05b3f41d080fda06bd3d7c16 (diff)
fdo#46808, use service constructor for beans::Introspection
Change-Id: Ieb49277020d31779979d8eb508391d6f8b97bf94
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/invocation/invocation.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx
index 8b7ea7029531..5445173ffb73 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -36,7 +36,7 @@
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/beans/XExactName.hpp>
#include <com/sun/star/beans/XMaterialHolder.hpp>
-#include <com/sun/star/beans/XIntrospection.hpp>
+#include <com/sun/star/beans/Introspection.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/MethodConcept.hpp>
@@ -1106,11 +1106,7 @@ InvocationService::InvocationService( const Reference<XComponentContext> & xCtx
OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.script.Converter")),
xCtx ),
UNO_QUERY );
- xIntrospection = Reference<XIntrospection>(
- mxSMgr->createInstanceWithContext(
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.Introspection")),
- xCtx),
- UNO_QUERY);
+ xIntrospection = Introspection::create(xCtx);
mxCtx->getValueByName(
OUString(
RTL_CONSTASCII_USTRINGPARAM("/singletons/com.sun.star.reflection.theCoreReflection")) )