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/runtime/formoperations.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'forms/source/runtime') diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx index 7efc18dea1e7..c6a16aac899b 100644 --- a/forms/source/runtime/formoperations.cxx +++ b/forms/source/runtime/formoperations.cxx @@ -949,7 +949,7 @@ namespace frm // both the control and its model can be committable, so try both Reference< XBoundComponent > xBound( xCurrentControl, UNO_QUERY ); if ( !xBound.is() ) - xBound = xBound.query( xCurrentControl->getModel() ); + xBound.set(xCurrentControl->getModel(), css::uno::UNO_QUERY); // and now really commit if ( xBound.is() ) bSuccess = xBound->commit(); @@ -1136,7 +1136,7 @@ namespace frm void FormOperations::impl_initFromController_throw() { OSL_PRECOND( m_xController.is(), "FormOperations::impl_initFromController_throw: invalid controller!" ); - m_xCursor = m_xCursor.query( m_xController->getModel() ); + m_xCursor.set(m_xController->getModel(), css::uno::UNO_QUERY); if ( !m_xCursor.is() ) throw IllegalArgumentException( OUString(), *this, 0 ); @@ -1151,9 +1151,9 @@ namespace frm void FormOperations::impl_initFromForm_throw() { OSL_PRECOND( m_xCursor.is(), "FormOperations::impl_initFromForm_throw: invalid form!" ); - m_xCursorProperties = m_xCursorProperties.query ( m_xCursor ); - m_xUpdateCursor = m_xUpdateCursor.query ( m_xCursor ); - m_xLoadableForm = m_xLoadableForm.query ( m_xCursor ); + m_xCursorProperties.set(m_xCursor, css::uno::UNO_QUERY); + m_xUpdateCursor.set(m_xCursor, css::uno::UNO_QUERY); + m_xLoadableForm.set(m_xCursor, css::uno::UNO_QUERY); if ( !m_xCursor.is() || !m_xCursorProperties.is() || !m_xLoadableForm.is() ) throw IllegalArgumentException( OUString(), *this, 0 ); @@ -1178,7 +1178,7 @@ namespace frm void FormOperations::createWithForm( const Reference< XForm >& _rxForm ) { - m_xCursor = m_xCursor.query( _rxForm ); + m_xCursor.set(_rxForm, css::uno::UNO_QUERY); if ( !m_xCursor.is() ) throw IllegalArgumentException( OUString(), *this, 0 ); -- cgit