diff src/ov-cs-list.cc @ 4051:b79da8779a0e

[project @ 2002-08-17 19:38:32 by jwe]
author jwe
date Sat, 17 Aug 2002 19:38:33 +0000
parents 10bc4c350d61
children 6e86256e9c54
line wrap: on
line diff
--- a/src/ov-cs-list.cc
+++ b/src/ov-cs-list.cc
@@ -29,8 +29,8 @@
 #endif
 
 #include <iostream>
-#include <strstream>
 
+#include "lo-sstream.h"
 #include "lo-utils.h"
 
 #include "defun.h"
@@ -238,15 +238,14 @@
 
       for (int i = 0; i < n; i++)
 	{
-	  std::ostrstream buf;
-	  buf << "[" << i+1 << "]" << std::ends;
-	  const char *nm = buf.str ();
+	  OSSTREAM buf;
+	  buf << "[" << i+1 << "]" << OSSTREAM_ENDS;
 
 	  octave_value val = lst(i);
 
-	  val.print_with_name (os, nm);
+	  val.print_with_name (os, OSSTREAM_STR (buf));
 
-	  delete [] nm;
+	  OSSTREAM_FREEZE (buf);
 	}
 
       decrement_indent_level ();