aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist/plugins
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/playlist/plugins
parentdb6db517424e09bab9a12934e9df6807a7049926 (diff)
downloadmpd-87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802.tar.gz
mpd-87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802.tar.xz
mpd-87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802.zip
util/StringUtil: rename strchug_fast() to StripLeft()
Diffstat (limited to 'src/playlist/plugins')
-rw-r--r--src/playlist/plugins/ExtM3uPlaylistPlugin.cxx4
-rw-r--r--src/playlist/plugins/M3uPlaylistPlugin.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/playlist/plugins/ExtM3uPlaylistPlugin.cxx b/src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
index 95cc84289..9d277ec3f 100644
--- a/src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
+++ b/src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
@@ -82,7 +82,7 @@ extm3u_parse_tag(const char *line)
/* 0 means unknown duration */
duration = 0;
- name = strchug_fast(endptr + 1);
+ name = StripLeft(endptr + 1);
if (*name == 0 && duration == 0)
/* no information available; don't allocate a tag
object */
@@ -116,7 +116,7 @@ ExtM3uPlaylist::NextSong()
continue;
}
- line_s = strchug_fast(line_s);
+ line_s = StripLeft(line_s);
} while (line_s[0] == '#' || *line_s == 0);
return new DetachedSong(line_s, std::move(tag));
diff --git a/src/playlist/plugins/M3uPlaylistPlugin.cxx b/src/playlist/plugins/M3uPlaylistPlugin.cxx
index c7f3b5085..977587377 100644
--- a/src/playlist/plugins/M3uPlaylistPlugin.cxx
+++ b/src/playlist/plugins/M3uPlaylistPlugin.cxx
@@ -52,7 +52,7 @@ M3uPlaylist::NextSong()
if (line_s == nullptr)
return nullptr;
- line_s = strchug_fast(line_s);
+ line_s = StripLeft(line_s);
} while (line_s[0] == '#' || *line_s == 0);
return new DetachedSong(line_s);