summaryrefslogtreecommitdiff
path: root/forms/source/component/FormComponent.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-13 17:50:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-13 17:54:27 +0200
commit86c89322ea925dc2ba732090688b28e61b245aea (patch)
tree50ba38fc946705e50a842f1ceee7f9a8d6c4ace4 /forms/source/component/FormComponent.cxx
parentdfb908c07ba950f91b766dfa0d7a9b203b955239 (diff)
loplugin:staticcall
Change-Id: I3c43c34e66772ce7e42b42be04e0591f2e78ec01
Diffstat (limited to 'forms/source/component/FormComponent.cxx')
-rw-r--r--forms/source/component/FormComponent.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index f5143564c30b..6cbe180593be 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -123,8 +123,8 @@ OControl::OControl( const Reference< XComponentContext >& _rxContext, const OUSt
// das Aggregat selbst den Refcount erhoeht
increment( m_refCount );
{
- m_xAggregate = m_xAggregate.query( _rxContext->getServiceManager()->createInstanceWithContext(_rAggregateService, _rxContext) );
- m_xControl = m_xControl.query( m_xAggregate );
+ m_xAggregate.set(_rxContext->getServiceManager()->createInstanceWithContext(_rAggregateService, _rxContext), css::uno::UNO_QUERY);
+ m_xControl.set(m_xAggregate, css::uno::UNO_QUERY);
}
decrement( m_refCount );
@@ -632,7 +632,7 @@ void SAL_CALL OControlModel::setParent(const Reference< XInterface >& _rxParent)
xComp->removeEventListener(static_cast<XPropertiesChangeListener*>(this));
m_xParent = _rxParent;
- xComp = xComp.query( m_xParent );
+ xComp.set(m_xParent, css::uno::UNO_QUERY);
if ( xComp.is() )
xComp->addEventListener(static_cast<XPropertiesChangeListener*>(this));
@@ -1562,7 +1562,7 @@ void OBoundControlModel::readCommonProperties(const Reference<stario::XObjectInp
nUsedFlag = _rxInStream->readLong();
if (nUsedFlag)
xPersist = _rxInStream->readObject();
- m_xLabelControl = m_xLabelControl.query( xPersist );
+ m_xLabelControl.set(xPersist, css::uno::UNO_QUERY);
Reference< XComponent > xComp( m_xLabelControl, UNO_QUERY );
if (xComp.is())
xComp->addEventListener(static_cast<com::sun::star::lang::XEventListener*>(static_cast<XPropertyChangeListener*>(this)));