From bb2ab4bc5b2c9cc25ef1858ac538f2dc48af2d2c Mon Sep 17 00:00:00 2001 From: rtk0c Date: Fri, 21 May 2021 18:34:20 -0700 Subject: Fix type and field the same name --- core/src/Model/Workflow/Nodes/TextNodes.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/src/Model/Workflow/Nodes/TextNodes.cpp') 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(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 +} -- cgit v1.2.3-70-g09d2