diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-22 09:52:13 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-22 14:34:21 +0200 |
commit | db8067145f0126402be39042934e11228a1b42e9 (patch) | |
tree | 0a9d18faaf0c862cc544e6a991b32a68bbb40e28 /forms | |
parent | 14420e83296fd393cba956047370564c3517cdae (diff) |
loplugin:write only fields
Change-Id: I44f249a17d0a510ec63a488b656d57a1a392f821
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/binding.cxx | 3 | ||||
-rw-r--r-- | forms/source/xforms/evaluationcontext.hxx | 15 | ||||
-rw-r--r-- | forms/source/xforms/model.cxx | 2 |
3 files changed, 5 insertions, 15 deletions
diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx index b4736d705b55..9a713d483ae7 100644 --- a/forms/source/xforms/binding.cxx +++ b/forms/source/xforms/binding.cxx @@ -547,8 +547,7 @@ static void lcl_removeListenerFromNode( Reference<XNode> xNode, // create proper evaluation context for this MIP aVector.push_back( EvaluationContext( *aIter, getModel(), - getBindingNamespaces(), - nCount, aNodes.size() ) ); + getBindingNamespaces() ) ); } return aVector; } diff --git a/forms/source/xforms/evaluationcontext.hxx b/forms/source/xforms/evaluationcontext.hxx index 59799f0b6515..0edf05561cdf 100644 --- a/forms/source/xforms/evaluationcontext.hxx +++ b/forms/source/xforms/evaluationcontext.hxx @@ -35,30 +35,21 @@ public: EvaluationContext() : mxContextNode(), mxModel(), - mxNamespaces(), - mnContextPosition( 0 ), - mnContextSize( 0 ) + mxNamespaces() { } EvaluationContext( const css::uno::Reference<css::xml::dom::XNode>& xContextNode, const css::uno::Reference<css::xforms::XModel>& xModel, - const css::uno::Reference<css::container::XNameContainer>& xNamespaces, - sal_Int32 nPosition, - sal_Int32 nSize ) + const css::uno::Reference<css::container::XNameContainer>& xNamespaces ) : mxContextNode( xContextNode ), mxModel( xModel ), - mxNamespaces( xNamespaces ), - mnContextPosition( nPosition ), - mnContextSize( nSize ) + mxNamespaces( xNamespaces ) { } css::uno::Reference<css::xml::dom::XNode> mxContextNode; css::uno::Reference<css::xforms::XModel> mxModel; css::uno::Reference<css::container::XNameContainer> mxNamespaces; - - sal_Int32 mnContextPosition; - sal_Int32 mnContextSize; }; diff --git a/forms/source/xforms/model.cxx b/forms/source/xforms/model.cxx index 1a0e50bc81b3..c56730331ca7 100644 --- a/forms/source/xforms/model.cxx +++ b/forms/source/xforms/model.cxx @@ -162,7 +162,7 @@ EvaluationContext Model::getEvaluationContext() xElement->getNodeType() == NodeType_ELEMENT_NODE, "no element in evaluation context" ); - return EvaluationContext( xElement, this, mxNamespaces, 0, 1 ); + return EvaluationContext( xElement, this, mxNamespaces ); } |