Skip to content

Commit

Permalink
AnalyzerTrack: Make constructor explicit
Browse files Browse the repository at this point in the history
To prevent accidentally passing just the track and thereby discarding
option overrides.

See mixxxdj#11872 (comment)
  • Loading branch information
fwcd committed Aug 26, 2023
1 parent d1893e2 commit 92dec00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyzer/analyzertrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class AnalyzerTrack {
std::optional<bool> useFixedTempo;
};

AnalyzerTrack(TrackPointer track, Options options = Options());
explicit AnalyzerTrack(TrackPointer track, Options options = Options());

/// Fetches the (not-null) track to be analyzed.
const TrackPointer& getTrack() const;
Expand Down

0 comments on commit 92dec00

Please sign in to comment.