turn enum TiePos into enum class

wonder whether for that one time an overloaded operator& would be worth
the effort?
This commit is contained in:
Joachim Schmitz 2014-06-30 17:48:15 +02:00
parent 050256b751
commit 924009cc9c
3 changed files with 6 additions and 6 deletions

View file

@ -1494,7 +1494,7 @@ void OveToMScore::convertNotes(Measure* measure, int part, int staff, int track)
}
// tie
if ((oveNote->getTiePos() & OVE::Tie_LeftEnd) == OVE::Tie_LeftEnd) {
if ((int(oveNote->getTiePos()) & int(OVE::TiePos::LeftEnd)) == int(OVE::TiePos::LeftEnd)) {
Tie* tie = new Tie(score_);
note->setTieFor(tie);
tie->setStartNote(note);

View file

@ -1287,7 +1287,7 @@ Note::Note() {
offVelocity_ = 0x40;
onVelocity_ = 0x50;
headType_ = NoteHeadType::Standard;
tiePos_ = Tie_None;
tiePos_ = TiePos::None;
offsetStaff_ = 0;
show_ = true;
offsetTick_ = 0;

View file

@ -252,10 +252,10 @@ enum class NoteHeadType : char {
Open_Ti
};
enum TiePos {
Tie_None = 0x0,
Tie_LeftEnd = 0x1,
Tie_RightEnd = 0x2
enum class TiePos : char {
None = 0x0,
LeftEnd = 0x1,
RightEnd = 0x2
};
enum ArticulationType {