diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 19:50:54 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-20 13:06:40 +0200 |
commit | c772bc45c60be3f559cdd42a9628f37f15da0a17 (patch) | |
tree | 2a30c33f17c6be05510af649027aafea805417ae /src/DatabaseQueue.cxx | |
parent | c1e7be3b8e4ab5fb99587b8e5f262ce41805f892 (diff) | |
download | mpd-c772bc45c60be3f559cdd42a9628f37f15da0a17.tar.gz mpd-c772bc45c60be3f559cdd42a9628f37f15da0a17.tar.xz mpd-c772bc45c60be3f559cdd42a9628f37f15da0a17.zip |
PlaylistError: convert playlist_result to a strictly-typed enum
Diffstat (limited to 'src/DatabaseQueue.cxx')
-rw-r--r-- | src/DatabaseQueue.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DatabaseQueue.cxx b/src/DatabaseQueue.cxx index 79ff004a7..e277c0fca 100644 --- a/src/DatabaseQueue.cxx +++ b/src/DatabaseQueue.cxx @@ -30,10 +30,10 @@ static bool AddToQueue(Partition &partition, Song &song, Error &error) { - enum playlist_result result = + PlaylistResult result = partition.playlist.AppendSong(partition.pc, &song, NULL); - if (result != PLAYLIST_RESULT_SUCCESS) { - error.Set(playlist_domain, result, "Playlist error"); + if (result != PlaylistResult::SUCCESS) { + error.Set(playlist_domain, int(result), "Playlist error"); return false; } |