aboutsummaryrefslogtreecommitdiffstats
path: root/test/dump_text_file.cxx
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 /test/dump_text_file.cxx
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 'test/dump_text_file.cxx')
-rw-r--r--test/dump_text_file.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dump_text_file.cxx b/test/dump_text_file.cxx
index 79b402b5a..03f8114a4 100644
--- a/test/dump_text_file.cxx
+++ b/test/dump_text_file.cxx
@@ -43,9 +43,9 @@
static void
dump_text_file(TextInputStream &is)
{
- std::string line;
- while (is.ReadLine(line))
- printf("'%s'\n", line.c_str());
+ const char *line;
+ while ((line = is.ReadLine()) != nullptr)
+ printf("'%s'\n", line);
}
static int