summaryrefslogtreecommitdiff
path: root/reportdesign
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 /reportdesign
parent5e48667f6bdd2f5e05b3f41d080fda06bd3d7c16 (diff)
fdo#46808, use service constructor for beans::Introspection
Change-Id: Ieb49277020d31779979d8eb508391d6f8b97bf94
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/sdr/UndoEnv.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/reportdesign/source/core/sdr/UndoEnv.cxx b/reportdesign/source/core/sdr/UndoEnv.cxx
index 41c13e2f1d19..519e29473d4d 100644
--- a/reportdesign/source/core/sdr/UndoEnv.cxx
+++ b/reportdesign/source/core/sdr/UndoEnv.cxx
@@ -32,6 +32,7 @@
#include <com/sun/star/script/XEventAttacherManager.hpp>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
+#include <com/sun/star/beans/Introspection.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/util/XModifyBroadcaster.hpp>
#include <com/sun/star/beans/XIntrospectionAccess.hpp>
@@ -277,16 +278,13 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
if ( !m_pImpl->m_xIntrospection.is() )
{
::comphelper::ComponentContext aContext( m_pImpl->m_rModel.getController()->getORB() );
- OSL_VERIFY( aContext.createComponent( "com.sun.star.beans.Introspection", m_pImpl->m_xIntrospection ) );
- }
- if ( m_pImpl->m_xIntrospection.is() )
- {
- Reference< XIntrospectionAccess > xIntrospection(
- m_pImpl->m_xIntrospection->inspect( makeAny( _rEvent.Source ) ),
- UNO_SET_THROW
- );
- rObjectInfo.xPropertyIntrospection.set( xIntrospection->queryAdapter( XPropertySet::static_type() ), UNO_QUERY_THROW );
+ m_pImpl->m_xIntrospection = Introspection::create( aContext.getUNOContext() );
}
+ Reference< XIntrospectionAccess > xIntrospection(
+ m_pImpl->m_xIntrospection->inspect( makeAny( _rEvent.Source ) ),
+ UNO_SET_THROW
+ );
+ rObjectInfo.xPropertyIntrospection.set( xIntrospection->queryAdapter( XPropertySet::static_type() ), UNO_QUERY_THROW );
}
if ( rObjectInfo.xPropertyIntrospection.is() )
{