Skip to content

Commit

Permalink
Removed empty brackets. Changed Operator* to dereferenced pointer. Ad…
Browse files Browse the repository at this point in the history
…ded check if NodeId is of BaseDataVariableType.
  • Loading branch information
mdornaus authored and GoetzGoerisch committed Sep 27, 2023
1 parent ac73c91 commit 9a3e29e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DashboardClient/OpcUaTypeReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@
}
if (!node->SpecifiedChildNodes->empty()){
for (auto childNodesIterator = node->SpecifiedChildNodes->begin(); childNodesIterator != node->SpecifiedChildNodes->end(); childNodesIterator++){
updateBaseDataVariableTypes(childNodesIterator.operator*());
if ((childNodesIterator != node->SpecifiedChildNodes->end()) && (childNodesIterator != --node->SpecifiedChildNodes->end())) {
}
updateBaseDataVariableTypes(*childNodesIterator);
}
}
}
Expand Down Expand Up @@ -312,7 +310,9 @@
const std::weak_ptr<ModelOpcUa::StructureBiNode> &parent, ModelOpcUa::ModellingRule_t modellingRule,
bool ofBaseDataVariableType)
{
this->BaseDataVariableTypes.push_back(entry.NodeId);
if(ofBaseDataVariableType) {
this->BaseDataVariableTypes.push_back(entry.NodeId);
}
bool isObjectType = ModelOpcUa::ObjectType == entry.NodeClass;
bool isVariableType = ModelOpcUa::VariableType == entry.NodeClass;
ModelOpcUa::StructureBiNode node(
Expand Down

0 comments on commit 9a3e29e

Please sign in to comment.