diff libinterp/octave-value/ov-base-mat.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 ea0ecbe2eaf5
children bcd71a2531d3
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base-mat.h
+++ b/libinterp/octave-value/ov-base-mat.h
@@ -157,7 +157,7 @@
 
   void print_info (std::ostream& os, const std::string& prefix) const;
 
-  std::string short_disp (void) const;
+  void short_disp (std::ostream& os) const;
 
   MT& matrix_ref (void)
   {