From 9fb351a139a56fc7b1ece549894f8fc31fa887cd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jul 2014 20:58:14 +0200 Subject: *Save, *State: use the OutputStream API instead of FILE* --- src/TagSave.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/TagSave.cxx') diff --git a/src/TagSave.cxx b/src/TagSave.cxx index 7666287af..6ec562ec5 100644 --- a/src/TagSave.cxx +++ b/src/TagSave.cxx @@ -20,19 +20,19 @@ #include "config.h" #include "TagSave.hxx" #include "tag/Tag.hxx" +#include "fs/output/BufferedOutputStream.hxx" #define SONG_TIME "Time: " void -tag_save(FILE *file, const Tag &tag) +tag_save(BufferedOutputStream &os, const Tag &tag) { if (tag.time >= 0) - fprintf(file, SONG_TIME "%i\n", tag.time); + os.Format(SONG_TIME "%i\n", tag.time); if (tag.has_playlist) - fprintf(file, "Playlist: yes\n"); + os.Format("Playlist: yes\n"); for (const auto &i : tag) - fprintf(file, "%s: %s\n", - tag_item_names[i.type], i.value); + os.Format("%s: %s\n", tag_item_names[i.type], i.value); } -- cgit v1.2.3