comparison libinterp/octave-value/ov-bool-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 3ac9f47fb04b
children fcac5dbbf9ed
comparison
equal deleted inserted replaced
21123:71408ab5071e 21124:95f8c8cdbffe
205 } 205 }
206 206
207 bool 207 bool
208 octave_bool_matrix::load_ascii (std::istream& is) 208 octave_bool_matrix::load_ascii (std::istream& is)
209 { 209 {
210 bool success = true;
211
212 string_vector keywords (2); 210 string_vector keywords (2);
213 211
214 keywords[0] = "ndims"; 212 keywords[0] = "ndims";
215 keywords[1] = "rows"; 213 keywords[1] = "rows";
216 214
282 panic_impossible (); 280 panic_impossible ();
283 } 281 }
284 else 282 else
285 panic_impossible (); 283 panic_impossible ();
286 284
287 return success; 285 return true;
288 } 286 }
289 287
290 bool 288 bool
291 octave_bool_matrix::save_binary (std::ostream& os, bool& /* save_as_floats */) 289 octave_bool_matrix::save_binary (std::ostream& os, bool& /* save_as_floats */)
292 { 290 {