diff options
author | Max Kellermann <max@duempel.org> | 2015-12-16 10:24:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-12-16 10:24:43 +0100 |
commit | e4a06da14e1184eacd00834aaf05c5457703a7eb (patch) | |
tree | 7d4d168bfd8475e9113b2d9d2e4b8b74c606f092 /src/PlaylistFile.cxx | |
parent | 36d6ead65cf507948744ee5d8615c8ef20e42f9d (diff) |
fs/io/OutputStream: use C++ exceptions in Write()
Diffstat (limited to 'src/PlaylistFile.cxx')
-rw-r--r-- | src/PlaylistFile.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx index c90af9760..d0af1c7f5 100644 --- a/src/PlaylistFile.cxx +++ b/src/PlaylistFile.cxx @@ -239,8 +239,7 @@ SavePlaylistFile(const PlaylistFileContents &contents, const char *utf8path, for (const auto &uri_utf8 : contents) playlist_print_uri(bos, uri_utf8.c_str()); - if (!bos.Flush(error)) - return false; + bos.Flush(); fos.Commit(); return true; @@ -415,9 +414,7 @@ spl_append_song(const char *utf8path, const DetachedSong &song, Error &error) playlist_print_song(bos, song); - if (!bos.Flush(error)) - return false; - + bos.Flush(); fos.Commit(); idle_add(IDLE_STORED_PLAYLIST); |