From 69ae879c585039297951821e353f7c1ca12b6cb8 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Thu, 7 Aug 2014 00:06:02 +0200
Subject: input/TextInputStream: return char*

Revert to the old API before commit e9e55b08, removing unnecessary
bloat.
---
 test/dump_text_file.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'test')

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
-- 
cgit v1.2.3