diff options
author | Max Kellermann <max@duempel.org> | 2016-02-21 12:53:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-02-21 12:53:47 +0100 |
commit | 0705f42cf8be9224780c09d21e5568ac9c9f086e (patch) | |
tree | ef41015106b8b153d1efc8656b96c0604c57c0a5 /src/input/TextInputStream.cxx | |
parent | cadc67ea40d761281d768256514d6660d820500f (diff) |
playlist/Plugin: pass InputStreamPtr&& to open_stream()
Obsolete class CloseSongEnumerator, which was a kludge.
Diffstat (limited to 'src/input/TextInputStream.cxx')
-rw-r--r-- | src/input/TextInputStream.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/input/TextInputStream.cxx b/src/input/TextInputStream.cxx index 897b2b472..b82da3a38 100644 --- a/src/input/TextInputStream.cxx +++ b/src/input/TextInputStream.cxx @@ -26,6 +26,11 @@ #include <assert.h> +TextInputStream::TextInputStream(InputStreamPtr &&_is) + :is(std::move(_is)) {} + +TextInputStream::~TextInputStream() {} + char * TextInputStream::ReadLine() { @@ -54,7 +59,7 @@ TextInputStream::ReadLine() --dest.size; Error error; - size_t nbytes = is.LockRead(dest.data, dest.size, error); + size_t nbytes = is->LockRead(dest.data, dest.size, error); if (nbytes > 0) buffer.Append(nbytes); else if (error.IsDefined()) { |