From 64465c1318e227ca625ee2047ec8b6a8f0c2faff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 19 Jan 2014 19:57:27 +0100 Subject: 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. --- src/UpdateSong.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/UpdateSong.cxx') diff --git a/src/UpdateSong.cxx b/src/UpdateSong.cxx index d07948eed..592298f49 100644 --- a/src/UpdateSong.cxx +++ b/src/UpdateSong.cxx @@ -69,7 +69,7 @@ update_song_file2(Directory &directory, if (song == nullptr) { FormatDebug(update_domain, "reading %s/%s", directory.GetPath(), name); - song = Song::LoadFile(name, &directory); + song = Song::LoadFile(name, directory); if (song == nullptr) { FormatDebug(update_domain, "ignoring unrecognized file %s/%s", -- cgit v1.2.3