summaryrefslogtreecommitdiff
path: root/src/input/TextInputStream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/TextInputStream.cxx')
-rw-r--r--src/input/TextInputStream.cxx7
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()) {