From b76a29a69ae5412c3c1d101eefa9562990e74407 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 7 Aug 2013 19:54:38 +0200 Subject: ConfigPath: return a Path object Migrate all callers to use Path directly, instead of doing the conversion in each caller. --- src/ConfigData.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ConfigData.hxx') diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx index 2586ed4b2..4d9c0af79 100644 --- a/src/ConfigData.hxx +++ b/src/ConfigData.hxx @@ -28,6 +28,8 @@ #include #include +class Path; + struct block_param { std::string name; std::string value; @@ -110,8 +112,7 @@ struct config_param { * Same as config_dup_path(), but looks up the setting in the * specified block. */ - gcc_malloc - char *DupBlockPath(const char *name, GError **error_r) const; + Path GetBlockPath(const char *name, GError **error_r) const; gcc_pure unsigned GetBlockValue(const char *name, unsigned default_value) const; -- cgit v1.2.3