input/TextInputStream: return char*

Revert to the old API before commit e9e55b08, removing unnecessary
bloat.
This commit is contained in:
Max Kellermann
2014-08-07 00:06:02 +02:00
parent 08fee9a284
commit 69ae879c58
6 changed files with 27 additions and 34 deletions

View File

@@ -22,8 +22,6 @@
#include "util/StaticFifoBuffer.hxx"
#include <string>
class InputStream;
class TextInputStream {
@@ -46,11 +44,9 @@ public:
/**
* Reads the next line from the stream with newline character stripped.
*
* @param line a string to put result to
* @return true if line is read successfully, false on end of file
* or error
* @return a pointer to the line, or nullptr on end-of-file or error
*/
bool ReadLine(std::string &line);
char *ReadLine();
};
#endif