Skip to content

Commit

Permalink
QueuePage: use the strfsong() return value
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Sep 1, 2024
1 parent 7a5bf44 commit d3434bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/QueuePage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ QueuePage::GetListItemText(std::span<char> buffer,
assert(idx < playlist->size());

const auto &song = (*playlist)[idx];
strfsong(buffer, options.list_format.c_str(), &song);

return buffer.data();
return strfsong(buffer, options.list_format.c_str(), &song);
}

void
Expand Down

0 comments on commit d3434bf

Please sign in to comment.