tdf#39593 Remove static xforms::Binding::getModelImpl
Replace with comphelper::getUnoTunnelImplementation. Change-Id: I001293ca25387a34cff9872c6db2ab72c6c4d617 Reviewed-on: https://gerrit.libreoffice.org/74385 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
committed by
Stephan Bergmann
parent
6ad13e0e5d
commit
e2814bc4d3
@@ -53,6 +53,7 @@
|
||||
#include <com/sun/star/container/XNameContainer.hpp>
|
||||
|
||||
#include <unotools/textsearch.hxx>
|
||||
#include <comphelper/servicehelper.hxx>
|
||||
#include <cppuhelper/typeprovider.hxx>
|
||||
|
||||
using namespace com::sun::star::xml::xpath;
|
||||
@@ -454,17 +455,7 @@ bool Binding::isLive() const
|
||||
|
||||
Model* Binding::getModelImpl() const
|
||||
{
|
||||
return getModelImpl( mxModel );
|
||||
}
|
||||
|
||||
Model* Binding::getModelImpl( const css::uno::Reference<css::xforms::XModel>& xModel )
|
||||
{
|
||||
Reference<XUnoTunnel> xTunnel( xModel, UNO_QUERY );
|
||||
Model* pModel = xTunnel.is()
|
||||
? reinterpret_cast<Model*>(
|
||||
xTunnel->getSomething( Model::getUnoTunnelId() ) )
|
||||
: nullptr;
|
||||
return pModel;
|
||||
return comphelper::getUnoTunnelImplementation<Model>( mxModel );
|
||||
}
|
||||
|
||||
static void lcl_addListenerToNode( const Reference<XNode>& xNode,
|
||||
|
||||
@@ -273,7 +273,6 @@ private:
|
||||
|
||||
/// get the model implementation
|
||||
xforms::Model* getModelImpl() const;
|
||||
static xforms::Model* getModelImpl( const css::uno::Reference<css::xforms::XModel>& xModel );
|
||||
|
||||
/// get MIP evaluation contexts
|
||||
/// (only valid if control has already been bound)
|
||||
|
||||
Reference in New Issue
Block a user