summaryrefslogtreecommitdiffstats
path: root/forms/source/runtime
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/runtime
parentloplugin:staticcall (diff)
downloadcore-86c89322ea925dc2ba732090688b28e61b245aea.tar.gz
core-86c89322ea925dc2ba732090688b28e61b245aea.zip
loplugin:staticcall
Change-Id: I3c43c34e66772ce7e42b42be04e0591f2e78ec01
Diffstat (limited to 'forms/source/runtime')
-rw-r--r--forms/source/runtime/formoperations.cxx12
1 files changed, 6 insertions, 6 deletions
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 );