diff options
Diffstat (limited to 'src/TextFile.hxx')
-rw-r--r-- | src/TextFile.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/TextFile.hxx b/src/TextFile.hxx index 25f6ea7a8..b24889f61 100644 --- a/src/TextFile.hxx +++ b/src/TextFile.hxx @@ -21,6 +21,7 @@ #define MPD_TEXT_FILE_HXX #include "gcc.h" +#include "Path.hxx" #include <glib.h> @@ -35,8 +36,9 @@ class TextFile { GString *const buffer; public: - TextFile(const char *path_fs) - :file(fopen(path_fs, "r")), buffer(g_string_sized_new(step)) {} + TextFile(const Path &path_fs) + :file(fopen(path_fs.c_str(), "r")), + buffer(g_string_sized_new(step)) {} TextFile(const TextFile &other) = delete; |