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

[project @ 2006-04-17 05:05:15 by jwe]
author jwe
date Mon, 17 Apr 2006 05:05:17 +0000
parents 8d7162924bd3
children ace8d8d26933
line wrap: on
line diff
--- a/src/ov-cell.cc	Sun Apr 16 19:10:01 2006 +0000
+++ b/src/ov-cell.cc	Mon Apr 17 05:05:17 2006 +0000
@@ -26,11 +26,11 @@
 #endif
 
 #include <iostream>
+#include <sstream>
 #include <vector>
 
 #include "Array-util.h"
 #include "byte-swap.h"
-#include "lo-sstream.h"
 #include "lo-utils.h"
 #include "quit.h"
 
@@ -386,14 +386,12 @@
 		{
 		  OCTAVE_QUIT;
 
-		  OSSTREAM buf;
-		  buf << "[" << i+1 << "," << j+1 << "]" << OSSTREAM_ENDS;
+		  std::ostringstream buf;
+		  buf << "[" << i+1 << "," << j+1 << "]";
 
 		  octave_value val = matrix(i,j);
 
-		  val.print_with_name (os, OSSTREAM_STR (buf));
-
-		  OSSTREAM_FREEZE (buf);
+		  val.print_with_name (os, buf.str ());
 		}
 	    }
 
@@ -785,10 +783,9 @@
   
   for (octave_idx_type i = 0; i < dv.numel (); i++)
     {
-      OSSTREAM buf;
-      buf << "_" << i << OSSTREAM_ENDS;
-      std::string s = OSSTREAM_STR (buf);
-      OSSTREAM_FREEZE (buf);
+      std::ostringstream buf;
+      buf << "_" << i;
+      std::string s = buf.str ();
 
       if (! add_hdf5_data(data_hid, tmp.elem (i), s.c_str (), "", false,
 			  save_as_floats))