Skip to content

Commit

Permalink
init variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Feb 6, 2025
1 parent 19b2750 commit 9b60522
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/editortoolkit_neume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ bool EditorToolkitNeume::Insert(std::string elementType, std::string staffId, in
Syl *syl = new Syl();
Neume *neume = new Neume();
Nc *nc = new Nc();
Zone *sylZone;
Zone *sylZone = NULL;
std::string contour = "";
nc->AttachZone(zone);

Expand Down Expand Up @@ -1061,7 +1061,7 @@ bool EditorToolkitNeume::Insert(std::string elementType, std::string staffId, in
data_CLEFSHAPE clefShape = CLEFSHAPE_NONE;

const int staffSize = m_doc->GetDrawingDoubleUnit(staff->m_drawingStaffSize);
int offsetR, offsetL;
int offsetR = 0, offsetL = 0;

for (auto it = attributes.begin(); it != attributes.end(); ++it) {
if (it->first == "shape") {
Expand Down Expand Up @@ -2887,6 +2887,7 @@ bool EditorToolkitNeume::Group(std::string groupType, std::vector<std::string> e
parent = new Syllable();
Syl *fullSyl = NULL;
int ulx, uly, lrx, lry;
ulx = uly = lrx = lry = 0;

// construct concatenated string of all the syls
std::u32string fullString = U"";
Expand Down Expand Up @@ -3013,7 +3014,7 @@ bool EditorToolkitNeume::Ungroup(std::string groupType, std::vector<std::string>

Nc *firstNc = NULL;
Nc *secondNc = NULL;
bool success1, success2;
bool success1 = false, success2 = false;
int ligCount = 0; // for ungroup ligature into nc
int ligNum = 0; // for ligature in ungroupNcs
int firstIsLig = false;
Expand Down
2 changes: 1 addition & 1 deletion src/scoringupfunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ ArrayOfElementDurPairs ScoringUpFunctor::GetBoundedNotes(
double ScoringUpFunctor::GetDurNumberValue(
const std::pair<LayerElement *, data_DURATION> &elementDurPair, bool followedByDot, LayerElement *nextElement)
{
data_DURQUALITY_mensural durquality;
data_DURQUALITY_mensural durquality = DURQUALITY_mensural_NONE;
data_DURATION dur = elementDurPair.second;
LayerElement *element = elementDurPair.first;
Note *note;
Expand Down

0 comments on commit 9b60522

Please sign in to comment.