diff src/pt.cc @ 5765:7ba9ad1fec11

[project @ 2006-04-17 05:05:15 by jwe]
author jwe
date Mon, 17 Apr 2006 05:05:17 +0000
parents 7099eb9841b4
children 93c65f2a5668
line wrap: on
line diff
--- a/src/pt.cc	Sun Apr 16 19:10:01 2006 +0000
+++ b/src/pt.cc	Mon Apr 17 05:05:17 2006 +0000
@@ -26,10 +26,9 @@
 #endif
 
 #include <iostream>
+#include <sstream>
 #include <string>
 
-#include "lo-sstream.h"
-
 #include "ov-fcn.h"
 #include "pt.h"
 #include "pt-pr-code.h"
@@ -52,17 +51,13 @@
 std::string
 tree::str_print_code (void)
 {
-  OSSTREAM buf;
+  std::ostringstream buf;
 
   tree_print_code tpc (buf);
 
   accept (tpc);
 
-  buf << OSSTREAM_ENDS;
-
-  std::string retval = OSSTREAM_STR (buf);
-
-  OSSTREAM_FREEZE (buf);
+  std::string retval = buf.str ();
 
   return retval;
 }