From 87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 7 Aug 2014 14:53:07 +0200 Subject: util/StringUtil: rename strchug_fast() to StripLeft() --- src/config/ConfigFile.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/config') 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 '{'", -- cgit v1.2.3