Mercurial > jwe > octave
comparison libinterp/octave-value/ov-flt-cx-mat.cc @ 21124:95f8c8cdbffe
maint: Eliminate 'bool success' variable where possible.
* ov-base-diag.cc (load_ascii): Remove success var, return true.
* ov-base-int.cc (load_ascii): Remove success var, return true.
* ov-base-sparse.cc (load_ascii): Remove success var, return true.
* ov-bool-mat.cc (load_ascii): Remove success var, return true.
* ov-cx-mat.cc (load_ascii): Remove success var, return true.
* ov-fcn-handle.cc (set_fcn): Remove success var, return true.
* ov-flt-cx-mat.cc (load_ascii): Remove success var, return true.
* ov-flt-re-mat.cc (load_ascii): Remove success var, return true.
* ov-perm.cc (load_ascii): Remove success var, return true.
* ov-re-mat.cc (load_ascii): Remove success var, return true.
* ov-str-mat.cc (load_ascii): Remove success var, return true.
* ov-struct.cc (load_ascii): Remove success var, return true.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 20 Jan 2016 21:54:36 -0800 |
parents | 499b851fbfae |
children | fcac5dbbf9ed |
comparison
equal
deleted
inserted
replaced
21123:71408ab5071e | 21124:95f8c8cdbffe |
---|---|
315 } | 315 } |
316 | 316 |
317 bool | 317 bool |
318 octave_float_complex_matrix::load_ascii (std::istream& is) | 318 octave_float_complex_matrix::load_ascii (std::istream& is) |
319 { | 319 { |
320 bool success = true; | |
321 | |
322 string_vector keywords(2); | 320 string_vector keywords(2); |
323 | 321 |
324 keywords[0] = "ndims"; | 322 keywords[0] = "ndims"; |
325 keywords[1] = "rows"; | 323 keywords[1] = "rows"; |
326 | 324 |
378 panic_impossible (); | 376 panic_impossible (); |
379 } | 377 } |
380 else | 378 else |
381 panic_impossible (); | 379 panic_impossible (); |
382 | 380 |
383 return success; | 381 return true; |
384 } | 382 } |
385 | 383 |
386 bool | 384 bool |
387 octave_float_complex_matrix::save_binary (std::ostream& os, bool&) | 385 octave_float_complex_matrix::save_binary (std::ostream& os, bool&) |
388 { | 386 { |