aboutsummaryrefslogtreecommitdiff
path: root/src/TextFile.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-17 00:56:57 +0100
committerMax Kellermann <max@duempel.org>2013-01-18 15:34:01 +0100
commite5039c478aa93e3e107ee9031a3cf27a6c203fea (patch)
tree5d9fecc644b915fe02634911d65c29123e03c1b8 /src/TextFile.hxx
parent890151450663abd581cab56e853e8e713d822851 (diff)
Path: new class "Path" wraps filesystem path strings
Diffstat (limited to 'src/TextFile.hxx')
-rw-r--r--src/TextFile.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/TextFile.hxx b/src/TextFile.hxx
index 25f6ea7a..b24889f6 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;