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

@@ -92,7 +92,7 @@ SimpleDatabase::Create(gcc_unused EventLoop &loop,
bool
SimpleDatabase::Configure(const ConfigBlock &block, Error &error)
{
path = block.GetBlockPath("path", error);
path = block.GetPath("path", error);
if (path.IsNull()) {
if (!error.IsDefined())
error.Set(simple_db_domain,
@@ -102,7 +102,7 @@ SimpleDatabase::Configure(const ConfigBlock &block, Error &error)
path_utf8 = path.ToUTF8();
cache_path = block.GetBlockPath("cache_directory", error);
cache_path = block.GetPath("cache_directory", error);
if (path.IsNull() && error.IsDefined())
return false;