config/Block: rename GetBlockPath() to GetPath()

This commit is contained in:
Max Kellermann
2016-10-28 23:07:26 +02:00
parent f6f2a3b366
commit d8bcdca55a
7 changed files with 15 additions and 15 deletions

View File

@@ -91,8 +91,8 @@ ConfigBlock::GetBlockValue(const char *name, const char *default_value) const
}
AllocatedPath
ConfigBlock::GetBlockPath(const char *name, const char *default_value,
Error &error) const
ConfigBlock::GetPath(const char *name, const char *default_value,
Error &error) const
{
assert(!error.IsDefined());
@@ -119,9 +119,9 @@ ConfigBlock::GetBlockPath(const char *name, const char *default_value,
}
AllocatedPath
ConfigBlock::GetBlockPath(const char *name, Error &error) const
ConfigBlock::GetPath(const char *name, Error &error) const
{
return GetBlockPath(name, nullptr, error);
return GetPath(name, nullptr, error);
}
int

View File

@@ -112,10 +112,10 @@ struct ConfigBlock {
* Same as config_get_path(), but looks up the setting in the
* specified block.
*/
AllocatedPath GetBlockPath(const char *name, const char *default_value,
Error &error) const;
AllocatedPath GetPath(const char *name, const char *default_value,
Error &error) const;
AllocatedPath GetBlockPath(const char *name, Error &error) const;
AllocatedPath GetPath(const char *name, Error &error) const;
gcc_pure
int GetBlockValue(const char *name, int default_value) const;