summaryrefslogtreecommitdiff
path: root/forms/source/xforms/model_helper.hxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-06-19 23:20:46 +0300
committerStephan Bergmann <sbergman@redhat.com>2019-06-20 08:03:59 +0200
commit9e1fa327b161c24c3d588563d6a91aced50b85dd (patch)
tree8f6e0c3f53f716d98d04cf345ae41d397eecebc8 /forms/source/xforms/model_helper.hxx
parentd6a45af91bf1df9ab8aac3d8e83dba7474e15a95 (diff)
tdf#39593 Remove xforms::Binding::getBinding
Replace with comphelper::getUnoTunnelImplementation. Change-Id: Ic569783ae01f731f54b54775b8e0eba162cc4b78 Reviewed-on: https://gerrit.libreoffice.org/74381 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'forms/source/xforms/model_helper.hxx')
-rw-r--r--forms/source/xforms/model_helper.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/forms/source/xforms/model_helper.hxx b/forms/source/xforms/model_helper.hxx
index f0a6c46d58a4..592649f839de 100644
--- a/forms/source/xforms/model_helper.hxx
+++ b/forms/source/xforms/model_helper.hxx
@@ -57,20 +57,22 @@ public:
virtual bool isValid( const T& t ) const override
{
- return Binding::getBinding( t ) != nullptr;
+ return comphelper::getUnoTunnelImplementation<Binding>( t ) != nullptr;
}
protected:
virtual void _insert( const T& t ) override
{
- OSL_ENSURE( Binding::getBinding( t ) != nullptr, "invalid item?" );
- Binding::getBinding( t )->_setModel( css::uno::Reference<css::xforms::XModel>( mpModel ) );
+ auto pBinding = comphelper::getUnoTunnelImplementation<Binding>( t );
+ OSL_ENSURE( pBinding != nullptr, "invalid item?" );
+ pBinding->_setModel( css::uno::Reference<css::xforms::XModel>( mpModel ) );
}
virtual void _remove( const T& t ) override
{
- OSL_ENSURE( Binding::getBinding( t ) != nullptr, "invalid item?" );
- Binding::getBinding( t )->_setModel( css::uno::Reference<css::xforms::XModel>() );
+ auto pBinding = comphelper::getUnoTunnelImplementation<Binding>( t );
+ OSL_ENSURE( pBinding != nullptr, "invalid item?" );
+ pBinding->_setModel( css::uno::Reference<css::xforms::XModel>() );
}
};