diff options
Diffstat (limited to 'src/DatabaseSave.cxx')
-rw-r--r-- | src/DatabaseSave.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/DatabaseSave.cxx b/src/DatabaseSave.cxx index 7c6e34a4e..0fb00c8c0 100644 --- a/src/DatabaseSave.cxx +++ b/src/DatabaseSave.cxx @@ -49,10 +49,8 @@ enum { }; void -db_save_internal(FILE *fp, const Directory *music_root) +db_save_internal(FILE *fp, const Directory &music_root) { - assert(music_root != nullptr); - fprintf(fp, "%s\n", DIRECTORY_INFO_BEGIN); fprintf(fp, DB_FORMAT_PREFIX "%u\n", DB_FORMAT); fprintf(fp, "%s%s\n", DIRECTORY_MPD_VERSION, VERSION); @@ -68,7 +66,7 @@ db_save_internal(FILE *fp, const Directory *music_root) } bool -db_load_internal(TextFile &file, Directory *music_root, Error &error) +db_load_internal(TextFile &file, Directory &music_root, Error &error) { char *line; int format = 0; @@ -76,8 +74,6 @@ db_load_internal(TextFile &file, Directory *music_root, Error &error) bool success; bool tags[TAG_NUM_OF_ITEM_TYPES]; - assert(music_root != nullptr); - /* get initial info */ line = file.ReadLine(); if (line == nullptr || strcmp(DIRECTORY_INFO_BEGIN, line) != 0) { |