Skip to content

Commit

Permalink
removed redundant dynamic_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
eduar-hte committed May 5, 2024
1 parent 90118c1 commit 96f2476
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/rule_with_actions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@ void RuleWithActions::executeTransformations(

for (Transformation *a : m_transformations) {
if (none == 0) {
Transformation *t = dynamic_cast<Transformation *>(a);
executeTransformation(t, &value, trans, &ret, &path,
executeTransformation(a, &value, trans, &ret, &path,
&transformations);
}
if (a->m_isNone) {
Expand Down Expand Up @@ -418,8 +417,7 @@ void RuleWithActions::executeTransformations(
}
Transformation *a = dynamic_cast<Transformation*>(b.second.get());
if (none == 0) {
Transformation *t = dynamic_cast<Transformation *>(a);
executeTransformation(t, &value, trans, &ret, &path,
executeTransformation(a, &value, trans, &ret, &path,
&transformations);
}
if (a->m_isNone) {
Expand Down

0 comments on commit 96f2476

Please sign in to comment.