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/ConfigData.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ConfigData.hxx') diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx index 83c9bd477..d85228cc3 100644 --- a/src/ConfigData.hxx +++ b/src/ConfigData.hxx @@ -27,7 +27,7 @@ #include #include -class Path; +class AllocatedPath; class Error; struct block_param { @@ -109,10 +109,10 @@ struct config_param { * Same as config_dup_path(), but looks up the setting in the * specified block. */ - Path GetBlockPath(const char *name, const char *default_value, - Error &error) const; + AllocatedPath GetBlockPath(const char *name, const char *default_value, + Error &error) const; - Path GetBlockPath(const char *name, Error &error) const; + AllocatedPath GetBlockPath(const char *name, Error &error) const; gcc_pure unsigned GetBlockValue(const char *name, unsigned default_value) const; -- cgit v1.2.3