summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-09-29 17:20:22 +0200
committerAndras Timar <atimar@suse.com>2012-10-01 13:55:48 +0200
commitf5f06fb016766cc40817f1fcc3feec0b464845b0 (patch)
treeaefab28b58cbac33a616b4110ee8db43c831891b /reportdesign
parentee34432562393a4549e9e77f71146e43c5d02233 (diff)
Use comphelper::getComponentContext
...and some further clean up. Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/propbrw.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/reportdesign/source/ui/report/propbrw.cxx b/reportdesign/source/ui/report/propbrw.cxx
index 3ad3355426bc..42a195cca4de 100644
--- a/reportdesign/source/ui/report/propbrw.cxx
+++ b/reportdesign/source/ui/report/propbrw.cxx
@@ -132,16 +132,10 @@ PropBrw::PropBrw(const Reference< XMultiServiceFactory >& _xORB,Window* pParen
if (m_xMeAsFrame.is())
{
- Reference< XComponentContext > xOwnContext;
+ Reference< XComponentContext > xOwnContext(
+ comphelper::getComponentContext( m_xORB ) );
try
{
- // our own component context
- Reference< XPropertySet > xFactoryProperties( m_xORB, UNO_QUERY_THROW );
- xOwnContext.set(
- xFactoryProperties->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ) ) ),
- UNO_QUERY_THROW );
-
- // a ComponentContext for the
::cppu::ContextEntry_Init aHandlerContextInfo[] =
{
::cppu::ContextEntry_Init( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContextDocument" ) ), makeAny( m_pDesignView->getController().getModel() )),