Skip to content

Commit

Permalink
Remove duplicate function call, using local variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Buchwald committed Jul 29, 2024
1 parent 6e8bbe6 commit 97237a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/viewmodels/TriggerConditionViewModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ void TriggerConditionViewModel::OnValueChanged(const BoolModelProperty::ChangeAr
if (args.Property == HasTargetProperty)
{
const auto nTargetType = GetTargetType();
SetValue(HasTargetSizeProperty, args.tNewValue && IsAddressType(GetTargetType()));
SetValue(HasTargetSizeProperty, args.tNewValue && IsAddressType(nTargetType));
SetValue(HasTargetValueProperty, args.tNewValue && !IsParameterlessType(nTargetType));
}

Expand Down

0 comments on commit 97237a6

Please sign in to comment.