Skip to content

Commit

Permalink
fix bug in filter stack
Browse files Browse the repository at this point in the history
  • Loading branch information
huebl committed Aug 13, 2023
1 parent 456094f commit 28272ea
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/OpcUaStackCore/Filter/FilterStack.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2017-2021 Kai Huebl (kai@huebl-sgh.de)
Copyright 2017-2023 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Expand Down Expand Up @@ -98,16 +98,23 @@ namespace OpcUaStackCore
}

bool
FilterStack::buildOperatorNode(ContentFilter& contentFilter, ContentFilterResult& contentFilterResult, int idx, FilterNode::SPtr& node)
FilterStack::buildOperatorNode(
ContentFilter& contentFilter,
ContentFilterResult& contentFilterResult,
int idx,
FilterNode::SPtr& node
)
{

OpcUaStatusCode operatorStatus = OpcUaStatusCode::Success;

bool hasOperandError = false;

// get content filter element
ContentFilterElement::SPtr el;
contentFilter.elements().get(idx, el);

// create result elements
auto operandStatuses = boost::make_shared<OpcUaStatusCodeArray>();
operandStatuses->resize(el->filterOperands().size());

Expand Down Expand Up @@ -179,7 +186,7 @@ namespace OpcUaStackCore
{
SimpleAttributeOperand::SPtr simpleAttributeOperand = operand->parameter<SimpleAttributeOperand>();
SimpleAttributeFilterNode::SPtr simpleAttributeNode(new SimpleAttributeFilterNode(
simpleAttributeOperand->typeId(),
simpleAttributeOperand->typeDefinitionId(),
simpleAttributeOperand->browsePath(),
simpleAttributeOperand->attributeId(),
simpleAttributeOperand->indexRange()));
Expand Down

0 comments on commit 28272ea

Please sign in to comment.