about summary refs log tree commit diff stats
path: root/013literal_string.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-27 14:49:36 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-27 14:49:36 -0700
commit9e30dba08d6475e9c26f95630b9595bea73fb705 (patch)
treeb33945f770601ba45fc682811f757bdbd378f60d /013literal_string.cc
parenta17f9186c17073e07eef6f046dcc1b15f08ed73c (diff)
downloadmu-9e30dba08d6475e9c26f95630b9595bea73fb705.tar.gz
2292
Diffstat (limited to '013literal_string.cc')
-rw-r--r--013literal_string.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/013literal_string.cc b/013literal_string.cc
index 0e663d17..3bbd4940 100644
--- a/013literal_string.cc
+++ b/013literal_string.cc
@@ -42,7 +42,7 @@ string slurp_quoted(istream& in) {
 
 // A string is a code string if it contains a newline before any non-whitespace
 // todo: support comments before the newline. But that gets messy.
-bool is_code_string(istream& in, ostringstream& out) {
+bool is_code_string(istream& in, ostream& out) {
   while (!in.eof()) {
     char c = in.get();
     if (!isspace(c)) {
@@ -59,7 +59,7 @@ bool is_code_string(istream& in, ostringstream& out) {
 
 // Read a regular string. Regular strings can only contain other regular
 // strings.
-void slurp_quoted_comment_oblivious(istream& in, ostringstream& out) {
+void slurp_quoted_comment_oblivious(istream& in, ostream& out) {
   int brace_depth = 1;
   while (!in.eof()) {
     char c = in.get();
@@ -79,7 +79,7 @@ void slurp_quoted_comment_oblivious(istream& in, ostringstream& out) {
 }
 
 // Read a code string. Code strings can contain either code or regular strings.
-void slurp_quoted_comment_aware(istream& in, ostringstream& out) {
+void slurp_quoted_comment_aware(istream& in, ostream& out) {
   char c;
   while (in >> c) {
     if (c == '\\') {