aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/ConfigData.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-21 21:12:54 +0100
committerMax Kellermann <max@duempel.org>2015-01-21 21:18:25 +0100
commit76b7882f3324bb892a9ccc874e1bdacfd72e7b98 (patch)
treebf9679518ecb502322b7bbc17e324991f7a9de5d /src/config/ConfigData.cxx
parentbf0ab2d44c38064624778d5fb6d868cea7cb4e1a (diff)
downloadmpd-76b7882f3324bb892a9ccc874e1bdacfd72e7b98.tar.gz
mpd-76b7882f3324bb892a9ccc874e1bdacfd72e7b98.tar.xz
mpd-76b7882f3324bb892a9ccc874e1bdacfd72e7b98.zip
ConfigData: rename struct block_param to BlockParam
Diffstat (limited to '')
-rw-r--r--src/config/ConfigData.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/config/ConfigData.cxx b/src/config/ConfigData.cxx
index 42f93972c..5d0b61df0 100644
--- a/src/config/ConfigData.cxx
+++ b/src/config/ConfigData.cxx
@@ -34,7 +34,7 @@ config_param::~config_param()
delete next;
}
-const block_param *
+const BlockParam *
config_param::GetBlockParam(const char *name) const
{
for (const auto &i : block_params) {
@@ -50,7 +50,7 @@ config_param::GetBlockParam(const char *name) const
const char *
config_param::GetBlockValue(const char *name, const char *default_value) const
{
- const block_param *bp = GetBlockParam(name);
+ const BlockParam *bp = GetBlockParam(name);
if (bp == nullptr)
return default_value;
@@ -66,7 +66,7 @@ config_param::GetBlockPath(const char *name, const char *default_value,
int line2 = line;
const char *s;
- const block_param *bp = GetBlockParam(name);
+ const BlockParam *bp = GetBlockParam(name);
if (bp != nullptr) {
line2 = bp->line;
s = bp->value.c_str();
@@ -94,7 +94,7 @@ config_param::GetBlockPath(const char *name, Error &error) const
int
config_param::GetBlockValue(const char *name, int default_value) const
{
- const block_param *bp = GetBlockParam(name);
+ const BlockParam *bp = GetBlockParam(name);
if (bp == nullptr)
return default_value;
@@ -104,7 +104,7 @@ config_param::GetBlockValue(const char *name, int default_value) const
unsigned
config_param::GetBlockValue(const char *name, unsigned default_value) const
{
- const block_param *bp = GetBlockParam(name);
+ const BlockParam *bp = GetBlockParam(name);
if (bp == nullptr)
return default_value;
@@ -115,7 +115,7 @@ gcc_pure
bool
config_param::GetBlockValue(const char *name, bool default_value) const
{
- const block_param *bp = GetBlockParam(name);
+ const BlockParam *bp = GetBlockParam(name);
if (bp == nullptr)
return default_value;