summaryrefslogtreecommitdiff
path: root/src/playlist/cue/CueParser.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-10-05 20:27:31 +0200
committerMax Kellermann <max@musicpd.org>2020-10-05 20:33:58 +0200
commite0c75da266465ad94d3ee22937a69eb1f4f290c8 (patch)
tree30229fc64d2b8a392e98d115f838d652408e0ade /src/playlist/cue/CueParser.hxx
parent34bb53a29f664a13746e2ad483b717a2e4a0cbcb (diff)
playlist/cue/parser: pass StringView to Feed()
Diffstat (limited to 'src/playlist/cue/CueParser.hxx')
-rw-r--r--src/playlist/cue/CueParser.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/playlist/cue/CueParser.hxx b/src/playlist/cue/CueParser.hxx
index 3e7de2009..ba5e8d6cb 100644
--- a/src/playlist/cue/CueParser.hxx
+++ b/src/playlist/cue/CueParser.hxx
@@ -27,6 +27,8 @@
#include <string>
#include <memory>
+struct StringView;
+
class CueParser {
enum {
/**
@@ -104,7 +106,7 @@ public:
* Feed a text line from the CUE file into the parser. Call
* Get() after this to see if a song has been finished.
*/
- void Feed(const char *line) noexcept;
+ void Feed(StringView line) noexcept;
/**
* Tell the parser that the end of the file has been reached. Call