From 7d0269d2cec68c7e55df5b6db3d2266741534b17 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Sep 2013 00:06:31 +0200 Subject: InputLegacy: move functions to the input_stream class --- src/TextInputStream.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/TextInputStream.cxx') diff --git a/src/TextInputStream.cxx b/src/TextInputStream.cxx index 486400f96..cbdcd2290 100644 --- a/src/TextInputStream.cxx +++ b/src/TextInputStream.cxx @@ -19,7 +19,7 @@ #include "config.h" #include "TextInputStream.hxx" -#include "InputLegacy.hxx" +#include "InputStream.hxx" #include "util/fifo_buffer.h" #include "util/Error.hxx" @@ -54,8 +54,7 @@ bool TextInputStream::ReadLine(std::string &line) --length; Error error; - nbytes = input_stream_lock_read(is, dest, length, - error); + nbytes = is->LockRead(dest, length, error); if (nbytes > 0) fifo_buffer_append(buffer, nbytes); else if (error.IsDefined()) { -- cgit v1.2.3