From abfbd55305587306730d5419b8a3b09e6a43abcb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 21:59:35 +0200 Subject: fs/Path: rename to AllocatedPath The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object. --- src/TextFile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/TextFile.cxx') diff --git a/src/TextFile.cxx b/src/TextFile.cxx index da0b33816..89df6d1bf 100644 --- a/src/TextFile.cxx +++ b/src/TextFile.cxx @@ -27,7 +27,7 @@ #include #include -TextFile::TextFile(const Path &path_fs) +TextFile::TextFile(Path path_fs) :file(FOpen(path_fs, FOpenMode::ReadText)), buffer(g_string_sized_new(step)) {} -- cgit v1.2.3