diff options
author | Max Kellermann <max@duempel.org> | 2014-03-01 07:25:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-03-01 07:49:13 +0100 |
commit | 4ba7427fa0f4c8495df331829eb67b27be9c9078 (patch) | |
tree | d34390e68bcd7a26145ea308ea0ee842d637ba32 /src/input/TextInputStream.cxx | |
parent | 9dc5335e3e4e07371cfae96eca2cb5b2a93c8dd2 (diff) | |
download | mpd-4ba7427fa0f4c8495df331829eb67b27be9c9078.tar.gz mpd-4ba7427fa0f4c8495df331829eb67b27be9c9078.tar.xz mpd-4ba7427fa0f4c8495df331829eb67b27be9c9078.zip |
util/{Const,Writable}Buffer: add operator[]
Diffstat (limited to '')
-rw-r--r-- | src/input/TextInputStream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |