diff src/ov-flt-complex.cc @ 11586:12df7854fa7c

strip trailing whitespace from source files
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 17:24:59 -0500
parents fd0a3ac60b0e
children 72c96de7a403
line wrap: on
line diff
--- a/src/ov-flt-complex.cc
+++ b/src/ov-flt-complex.cc
@@ -205,7 +205,7 @@
   return FloatComplexNDArray (dim_vector (1, 1), scalar);
 }
 
-octave_value 
+octave_value
 octave_float_complex::resize (const dim_vector& dv, bool fill) const
 {
   if (fill)
@@ -228,7 +228,7 @@
     }
 }
 
-bool 
+bool
 octave_float_complex::save_ascii (std::ostream& os)
 {
   FloatComplex c = float_complex_value ();
@@ -240,12 +240,12 @@
   return true;
 }
 
-bool 
+bool
 octave_float_complex::load_ascii (std::istream& is)
 {
   scalar = octave_read_value<FloatComplex> (is);
 
-  if (!is) 
+  if (!is)
     {
       error ("load: failed to load complex scalar constant");
       return false;
@@ -255,7 +255,7 @@
 }
 
 
-bool 
+bool
 octave_float_complex::save_binary (std::ostream& os, bool& /* save_as_floats */)
 {
   char tmp = static_cast<char> (LS_FLOAT);
@@ -266,7 +266,7 @@
   return true;
 }
 
-bool 
+bool
 octave_float_complex::load_binary (std::istream& is, bool swap,
                              oct_mach_info::float_format fmt)
 {
@@ -299,18 +299,18 @@
     return false;
 
   type_hid = hdf5_make_complex_type (H5T_NATIVE_FLOAT);
-  if (type_hid < 0) 
+  if (type_hid < 0)
     {
       H5Sclose (space_hid);
       return false;
     }
 #if HAVE_HDF5_18
-  data_hid = H5Dcreate (loc_id, name, type_hid, space_hid, 
+  data_hid = H5Dcreate (loc_id, name, type_hid, space_hid,
                         H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
-#else                   
+#else
   data_hid = H5Dcreate (loc_id, name, type_hid, space_hid, H5P_DEFAULT);
 #endif
-  if (data_hid < 0) 
+  if (data_hid < 0)
     {
       H5Sclose (space_hid);
       H5Tclose (type_hid);
@@ -318,7 +318,7 @@
     }
 
   FloatComplex tmp = float_complex_value ();
-  retval = H5Dwrite (data_hid, type_hid, H5S_ALL, H5S_ALL, H5P_DEFAULT, 
+  retval = H5Dwrite (data_hid, type_hid, H5S_ALL, H5S_ALL, H5P_DEFAULT,
                      &tmp) >= 0;
 
   H5Dclose (data_hid);
@@ -351,7 +351,7 @@
   hid_t space_id = H5Dget_space (data_hid);
   hsize_t rank = H5Sget_simple_extent_ndims (space_id);
 
-  if (rank != 0) 
+  if (rank != 0)
     {
       H5Tclose (complex_type);
       H5Sclose (space_id);