aboutsummaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-07 14:53:07 +0200
committerMax Kellermann <max@duempel.org>2014-08-07 16:08:02 +0200
commit87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802 (patch)
tree9f2170889dfbfff90816d7d4eea7b19373ba213f /src/config
parentdb6db517424e09bab9a12934e9df6807a7049926 (diff)
downloadmpd-87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802.tar.gz
mpd-87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802.tar.xz
mpd-87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802.zip
util/StringUtil: rename strchug_fast() to StripLeft()
Diffstat (limited to 'src/config')
-rw-r--r--src/config/ConfigFile.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config/ConfigFile.cxx b/src/config/ConfigFile.cxx
index f045213a4..1329c4cd4 100644
--- a/src/config/ConfigFile.cxx
+++ b/src/config/ConfigFile.cxx
@@ -96,7 +96,7 @@ config_read_block(FILE *fp, int *count, char *string, Error &error)
}
(*count)++;
- line = strchug_fast(line);
+ line = StripLeft(line);
if (*line == 0 || *line == CONF_COMMENT)
continue;
@@ -104,7 +104,7 @@ config_read_block(FILE *fp, int *count, char *string, Error &error)
/* end of this block; return from the function
(and from this "while" loop) */
- line = strchug_fast(line + 1);
+ line = StripLeft(line + 1);
if (*line != 0 && *line != CONF_COMMENT) {
delete ret;
error.Format(config_file_domain,
@@ -155,7 +155,7 @@ ReadConfigFile(ConfigData &config_data, FILE *fp, Error &error)
count++;
- line = strchug_fast(string);
+ line = StripLeft(string);
if (*line == 0 || *line == CONF_COMMENT)
continue;
@@ -205,7 +205,7 @@ ReadConfigFile(ConfigData &config_data, FILE *fp, Error &error)
return false;
}
- line = strchug_fast(tokenizer.Rest() + 1);
+ line = StripLeft(tokenizer.Rest() + 1);
if (*line != 0 && *line != CONF_COMMENT) {
error.Format(config_file_domain,
"line %i: Unknown tokens after '{'",