Changeset 9782e20 for src/Bond/BondInfo.cpp
- Timestamp:
- Mar 16, 2024, 10:22:34 AM (20 months ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 19832d
- Parents:
- ad0929
- git-author:
- Frederik Heber <frederik.heber@…> (03/16/24 09:26:59)
- git-committer:
- Frederik Heber <frederik.heber@…> (03/16/24 10:22:34)
- File:
-
- 1 edited
-
src/Bond/BondInfo.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Bond/BondInfo.cpp
rad0929 r9782e20 85 85 } 86 86 87 voidBondInfo::RemoveBond() const87 bool BondInfo::RemoveBond() const 88 88 { 89 89 atom * const leftatom = World::getInstance().getAtom(AtomById(leftid)); 90 90 atom * const rightatom = World::getInstance().getAtom(AtomById(rightid)); 91 leftatom->removeBond(rightatom); 91 if (leftatom->IsBondedTo(rightatom)) { 92 leftatom->removeBond(rightatom); 93 return true; 94 } 95 return false; 92 96 }
Note:
See TracChangeset
for help on using the changeset viewer.
