Skip to content

Commit

Permalink
fixed known clang issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-w56 committed Mar 6, 2024
1 parent 2c669be commit a5e4e80
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/editortoolkit_cmn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ bool EditorToolkitCMN::KeyDown(std::string &elementId, int key, bool shiftKey, b

// For elements whose y-position corresponds to a certain pitch
if (element->HasInterface(INTERFACE_PITCH)) {
PitchInterface* pitch_interface = element->GetPitchInterface();
PitchInterface *pitch_interface = element->GetPitchInterface();
assert(pitch_interface);
int step;
switch (key) {
Expand Down Expand Up @@ -613,10 +613,9 @@ bool EditorToolkitCMN::DeleteNote(Note *note)
}

// All but the first IF statement branches lead here

// Clearing the coords here fixes an error where the children get updated, but the
// internal m_beamElementCoordRefs does not. By clearing it, the system is forced
// to update that structure to reflect the current children.
/* Clearing the coords here fixes an error where the children get updated, but the
* internal m_beamElementCoordRefs does not. By clearing it, the system is forced
* to update that structure to reflect the current children. */
beam->ClearCoords();
return true;
}
Expand Down

0 comments on commit a5e4e80

Please sign in to comment.