diff src/ov-cs-list.cc @ 5765:7ba9ad1fec11

[project @ 2006-04-17 05:05:15 by jwe]
author jwe
date Mon, 17 Apr 2006 05:05:17 +0000
parents 4c8a2e4e0717
children 93c65f2a5668
line wrap: on
line diff
--- a/src/ov-cs-list.cc	Sun Apr 16 19:10:01 2006 +0000
+++ b/src/ov-cs-list.cc	Mon Apr 17 05:05:17 2006 +0000
@@ -26,8 +26,8 @@
 #endif
 
 #include <iostream>
+#include <sstream>
 
-#include "lo-sstream.h"
 #include "lo-utils.h"
 
 #include "defun.h"
@@ -73,14 +73,12 @@
 
       for (octave_idx_type i = 0; i < n; i++)
 	{
-	  OSSTREAM buf;
-	  buf << "[" << i+1 << "]" << OSSTREAM_ENDS;
+	  std::ostringstream buf;
+	  buf << "[" << i+1 << "]";
 
 	  octave_value val = lst(i);
 
-	  val.print_with_name (os, OSSTREAM_STR (buf));
-
-	  OSSTREAM_FREEZE (buf);
+	  val.print_with_name (os, buf.str ());
 	}
 
       decrement_indent_level ();