Skip to content

Commit

Permalink
2739 fix static analysis check
Browse files Browse the repository at this point in the history
  • Loading branch information
jblack-mestre committed Jan 28, 2025
1 parent 65df421 commit 060bdaf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/indigo-core/tests/tests/formats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,16 +570,20 @@ TEST_F(IndigoCoreFormatsTest, wrong_stereochemistry_2739)
std::vector<std::pair<int, int>> testData = {{1, 1}, {1, 2}, {2, 1}};

std::vector<std::pair<int, int>> bondDirections;
for (int i = reaction.begin(); i != reaction.end(); i = reaction.next(i)) {
for (int i = reaction.begin(); i != reaction.end(); i = reaction.next(i))
{
const Molecule& mol = reaction.getMolecule(i);
int bondUp = 0;
int bondDown = 0;
for (int j = mol.edgeBegin(); j != mol.edgeEnd(); j = mol.edgeNext(j))
{
int direction = mol.getBondDirection(j);
if (direction == BOND_UP) {
if (direction == BOND_UP)
{
++bondUp;
} else if (direction == BOND_DOWN) {
}
else if (direction == BOND_DOWN)
{
++bondDown;
}
}
Expand Down

0 comments on commit 060bdaf

Please sign in to comment.