diff options
author | Max Kellermann <max@duempel.org> | 2014-01-19 19:57:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-19 23:16:09 +0100 |
commit | 64465c1318e227ca625ee2047ec8b6a8f0c2faff (patch) | |
tree | cebe7785a4c50b698e29597eb28c70bcca5864ce /src/DirectorySave.cxx | |
parent | a506adea41e21e071ac3e88d69824d6dd3a3c925 (diff) | |
download | mpd-64465c1318e227ca625ee2047ec8b6a8f0c2faff.tar.gz mpd-64465c1318e227ca625ee2047ec8b6a8f0c2faff.tar.xz mpd-64465c1318e227ca625ee2047ec8b6a8f0c2faff.zip |
Song: make the "parent" attribute mandatory
The Song class is only used for database songs now. A Song without a
Directory is not possible anymore.
Diffstat (limited to '')
-rw-r--r-- | src/DirectorySave.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DirectorySave.cxx b/src/DirectorySave.cxx index 1072b1e28..499f84734 100644 --- a/src/DirectorySave.cxx +++ b/src/DirectorySave.cxx @@ -145,7 +145,7 @@ directory_load(TextFile &file, Directory &directory, Error &error) return false; directory.AddSong(Song::NewFrom(std::move(*song), - &directory)); + directory)); delete song; } else if (StringStartsWith(line, PLAYLIST_META_BEGIN)) { const char *name = line + sizeof(PLAYLIST_META_BEGIN) - 1; |