You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
343 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#include "MemorySongEnumerator.hxx"
std::unique_ptr<DetachedSong>
MemorySongEnumerator::NextSong()
{
if (songs.empty())
return nullptr;
auto result = std::make_unique<DetachedSong>(std::move(songs.front()));
songs.pop_front();
return result;
}