aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/TextInputStream.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-07 00:06:02 +0200
committerMax Kellermann <max@duempel.org>2014-08-07 00:06:02 +0200
commit69ae879c585039297951821e353f7c1ca12b6cb8 (patch)
treefe394a053d2a45817e934f926be6ee660ba689a8 /src/input/TextInputStream.hxx
parent08fee9a284cc082822392b38574fd2d4b0afb843 (diff)
downloadmpd-69ae879c585039297951821e353f7c1ca12b6cb8.tar.gz
mpd-69ae879c585039297951821e353f7c1ca12b6cb8.tar.xz
mpd-69ae879c585039297951821e353f7c1ca12b6cb8.zip
input/TextInputStream: return char*
Revert to the old API before commit e9e55b08, removing unnecessary bloat.
Diffstat (limited to '')
-rw-r--r--src/input/TextInputStream.hxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/input/TextInputStream.hxx b/src/input/TextInputStream.hxx
index 873ecdbda..6f39d22cf 100644
--- a/src/input/TextInputStream.hxx
+++ b/src/input/TextInputStream.hxx
@@ -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