diff src/input.cc @ 5765:7ba9ad1fec11

[project @ 2006-04-17 05:05:15 by jwe]
author jwe
date Mon, 17 Apr 2006 05:05:17 +0000
parents 1c36a2e82266
children ace8d8d26933
line wrap: on
line diff
--- a/src/input.cc
+++ b/src/input.cc
@@ -33,6 +33,7 @@
 #include <cassert>
 
 #include <iostream>
+#include <sstream>
 #include <string>
 
 #ifdef HAVE_UNISTD_H
@@ -562,7 +563,7 @@
 	}
     }
 
-  OSSTREAM buf;
+  std::ostringstream buf;
 
   if (! nm.empty ())
     {
@@ -571,12 +572,8 @@
       if (line > 0)
 	buf << " at line " << line;
     }
-    
-  buf << OSSTREAM_ENDS;
 
-  std::string msg = OSSTREAM_STR (buf);
-
-  OSSTREAM_FREEZE (buf);
+  std::string msg = buf.str ();
 
   if (! msg.empty ())
     message ("keyboard", msg.c_str ());