From 86c89322ea925dc2ba732090688b28e61b245aea Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 13 Jun 2014 17:50:10 +0200 Subject: loplugin:staticcall Change-Id: I3c43c34e66772ce7e42b42be04e0591f2e78ec01 --- forms/source/component/FormComponent.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'forms/source/component/FormComponent.cxx') 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(this)); m_xParent = _rxParent; - xComp = xComp.query( m_xParent ); + xComp.set(m_xParent, css::uno::UNO_QUERY); if ( xComp.is() ) xComp->addEventListener(static_cast(this)); @@ -1562,7 +1562,7 @@ void OBoundControlModel::readCommonProperties(const ReferencereadLong(); 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(static_cast(this))); -- cgit