Skip to content

Commit

Permalink
Use an initalizer list to populate the cue hint
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed May 27, 2022
1 parent 019e5e0 commit f4cecb2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/engine/controls/cuecontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ void appendCueHint(HintVector* pHintList, const mixxx::audio::FramePos& frame, H
VERIFY_OR_DEBUG_ASSERT(pHintList) {
return;
}
Hint cueHint;

if (frame.isValid()) {
cueHint.frame = static_cast<SINT>(frame.toLowerFrameBoundary().value());
cueHint.frameCount = Hint::kFrameCountForward;
cueHint.type = type;
const Hint cueHint = {
/*.frame =*/static_cast<SINT>(frame.toLowerFrameBoundary().value()),
/*.frameCount =*/Hint::kFrameCountForward,
/*.type =*/type};
pHintList->append(cueHint);
}
}
Expand Down

0 comments on commit f4cecb2

Please sign in to comment.