Skip to content

Commit

Permalink
Bpm: Add proper debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Jul 4, 2021
1 parent bc0d16d commit 4dff17c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/track/bpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ inline bool operator!=(Bpm bpm1, Bpm bpm2) {
}

inline QDebug operator<<(QDebug dbg, Bpm arg) {
dbg << arg.getValue();
if (arg.hasValue()) {
dbg.nospace() << "Bpm(" << arg.getValue() << ")";
} else {
dbg << "Bpm(Invalid)";
}
return dbg;
}
}
Expand Down

0 comments on commit 4dff17c

Please sign in to comment.