Skip to content

Commit

Permalink
cuesheet.cpp: fix clang build error
Browse files Browse the repository at this point in the history
non-const lvalue reference to type X cannot bind to a temporary type Y
  • Loading branch information
nu774 committed May 5, 2019
1 parent a134e12 commit 27627b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cuesheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ CueSheet::loadTracks(bool is_embedded, const std::wstring &path,
const std::vector<int> &selection)
{
std::vector<std::shared_ptr<ISeekableSource>> tracks;
for (auto &track = begin(); track != end(); ++track) {
for (auto track = begin(); track != end(); ++track) {
if (selection.size()) {
if (std::find(selection.begin(), selection.end(),
track->number()) == selection.end())
Expand Down

0 comments on commit 27627b8

Please sign in to comment.