diff src/ov-cell.cc @ 4051:b79da8779a0e

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