aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseQueue.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/DatabaseQueue.cxx')
-rw-r--r--src/DatabaseQueue.cxx6
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;
}