Skip to content

Commit

Permalink
Fixes for the clang-tidy check bugprone-assignment-in-if-condition (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
itopcuoglu authored Aug 1, 2024
1 parent c7bf97f commit cf7b7b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/CartBlock.C
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ void CartBlock::processIblank(HOLEMAP* holemap, int nmesh, bool isNodal)
}
}
} else {
if ((temp = donorList[idof]) != nullptr) {
temp = donorList[idof];
if (temp != nullptr) {
// simplify logic here: the first one on the list is the
// best donor anyway, accept it if its not a mandatory
// receptor on the donor side
Expand Down Expand Up @@ -630,7 +631,8 @@ void CartBlock::processIblank(
}
}
} else {
if ((temp = donorList[idof]) != nullptr) {
temp = donorList[idof];
if (temp != nullptr) {
// simplify logic here: the first one on the list is the
// best donor anyway, accept it if its not a mandatory
// receptor on the donor side
Expand Down

0 comments on commit cf7b7b5

Please sign in to comment.