Skip to content

Commit

Permalink
Fix shadowed variable
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Berquist <[email protected]>
  • Loading branch information
berquist committed May 1, 2023
1 parent 3ef5ff4 commit 01ad4e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions avogadro/qtplugins/symmetry/symmetrywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ void SymmetryWidget::equivalenceSelectionChanged(
if (a == nullptr)
return;

unsigned int length = m_molecule->atomCount();
Index length = m_molecule->atomCount();
// unselect all the atoms
for (Index i = 0; i < length; ++i) {
m_molecule->setAtomSelected(i, false);
for (Index iat = 0; iat < length; ++iat) {
m_molecule->setAtomSelected(iat, false);
}
// this is yucky, but libmsym uses <void*> for id
auto selectedAtom = reinterpret_cast<Index>(a->id);
Expand Down

0 comments on commit 01ad4e0

Please sign in to comment.