config/Block: rename GetBlockPath() to GetPath()
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user