aboutsummaryrefslogtreecommitdiff
path: root/core/src/Model/Workflow/Nodes/TextNodes.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-05-21 18:34:20 -0700
committerrtk0c <[email protected]>2021-05-21 18:34:20 -0700
commitbb2ab4bc5b2c9cc25ef1858ac538f2dc48af2d2c (patch)
tree5ca29166332b3d043c6db773452d3bd168e31088 /core/src/Model/Workflow/Nodes/TextNodes.cpp
parentdc13110c14bf49e495d4b4243fd4758232f8716f (diff)
Fix type and field the same name
Diffstat (limited to 'core/src/Model/Workflow/Nodes/TextNodes.cpp')
-rw-r--r--core/src/Model/Workflow/Nodes/TextNodes.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/src/Model/Workflow/Nodes/TextNodes.cpp b/core/src/Model/Workflow/Nodes/TextNodes.cpp
index 6c71309..e67b033 100644
--- a/core/src/Model/Workflow/Nodes/TextNodes.cpp
+++ b/core/src/Model/Workflow/Nodes/TextNodes.cpp
@@ -92,7 +92,7 @@ void TextFormatterNode::SetElement(int idx, ArgumentType argument)
mMinOutputChars -= original.size();
mElements[idx] = Argument{
- .ArgumentType = argument,
+ .Type = argument,
.PinIdx = Impl::FindPinForElement(mElements, idx),
};
/* `original` is invalid from this point */
@@ -106,7 +106,7 @@ void TextFormatterNode::SetElement(int idx, ArgumentType argument)
// Create element
mElements[idx] = Argument{
- .ArgumentType = argument,
+ .Type = argument,
.PinIdx = pinIdx,
};
/* `original` is invalid from this point */
@@ -139,7 +139,7 @@ void TextFormatterNode::InsertElement(int idx, ArgumentType argument)
mElements.insert(
mElements.begin() + idx,
Argument{
- .ArgumentType = argument,
+ .Type = argument,
.PinIdx = pinIdx,
});
}
@@ -158,7 +158,7 @@ void TextFormatterNode::AppendElement(ArgumentType argument)
mInputs.back().MatchingType = ArgumentTypeToValueKind(argument);
// Creat eelement
mElements.push_back(Argument{
- .ArgumentType = argument,
+ .Type = argument,
.PinIdx = pinIdx,
});
}
@@ -183,7 +183,7 @@ void TextFormatterNode::Evaluate(WorkflowEvaluationContext& ctx)
result += str;
};
auto HandleArgument = [&](const Argument& arg) {
- switch (arg.ArgumentType) {
+ switch (arg.Type) {
case NumericArgument: {
if (auto val = dyn_cast<NumericValue>(ctx.GetConnectionValue(mInputs[arg.PinIdx]))) {
result += val->GetString();
@@ -228,4 +228,4 @@ void TextFormatterNode::PreRemoveElement(int idx)
arg.PinIdx--;
});
}
-} \ No newline at end of file
+}