diff libinterp/octave-value/ov.h @ 17870:1d2e709bbbda

rework short_disp methods * ov.h (octave_value::short_disp): Pass std::ostream as argument instead of returning std::string. Change all uses. * ov-base.h (octave_base_value::short_disp): Likewise. Change all derived classes. * ov-base-scalar.cc (octave_base_scalar<ST>::short_disp): Strip leading whitepace from number. * ov-base-mat.cc (octave_base_matrix<MT>::short_disp): Strip leading whitepace from numbers.
author John W. Eaton <jwe@octave.org>
date Thu, 07 Nov 2013 00:52:48 -0500
parents ebb3ef964372
children e473c4853afc
line wrap: on
line diff
--- a/libinterp/octave-value/ov.h	Sun Oct 27 13:03:33 2013 +0100
+++ b/libinterp/octave-value/ov.h	Thu Nov 07 00:52:48 2013 -0500
@@ -1027,7 +1027,7 @@
   void print_with_name (std::ostream& os, const std::string& name) const
   { rep->print_with_name (os, name, true); }
 
-  std::string short_disp (void) const { return rep->short_disp (); }
+  void short_disp (std::ostream& os) const { rep->short_disp (os); }
 
   int type_id (void) const { return rep->type_id (); }