From 4ba7427fa0f4c8495df331829eb67b27be9c9078 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Mar 2014 07:25:17 +0100 Subject: util/{Const,Writable}Buffer: add operator[] --- src/input/TextInputStream.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input/TextInputStream.cxx') diff --git a/src/input/TextInputStream.cxx b/src/input/TextInputStream.cxx index 25b9b42fe..d7cb440b3 100644 --- a/src/input/TextInputStream.cxx +++ b/src/input/TextInputStream.cxx @@ -63,7 +63,7 @@ bool TextInputStream::ReadLine(std::string &line) the current line */ dest = buffer.Write(); assert(!dest.IsEmpty()); - dest.data[0] = '\n'; + dest[0] = '\n'; buffer.Append(1); } } while (p == nullptr); -- cgit v1.2.3