fs/io/TextFile: split into class FileLineReader and AutoGunzipFileLineReader

Detangle dependencies.
This commit is contained in:
Max Kellermann
2023-11-25 22:39:48 +01:00
parent d888bb1902
commit 08a5768764
14 changed files with 57 additions and 43 deletions

View File

@@ -11,7 +11,7 @@
#include "SongLoader.hxx"
#include "Mapper.hxx"
#include "protocol/RangeArg.hxx"
#include "fs/io/TextFile.hxx"
#include "io/FileLineReader.hxx"
#include "io/FileOutputStream.hxx"
#include "io/BufferedOutputStream.hxx"
#include "config/Data.hxx"
@@ -184,7 +184,7 @@ try {
assert(!path_fs.IsNull());
TextFile file(path_fs);
FileLineReader file{path_fs};
char *s;
while ((s = file.ReadLine()) != nullptr) {