Mercurial > octave-nkf
comparison libinterp/corefcn/dirfns.cc @ 20590:1a0a433c8263
eliminate more simple uses of error_state
* dirfns.cc, oct-map.cc, oct-stream.cc, regexp.cc, ov-base-mat.cc,
ov-cell.cc, pt-idx.cc, pt-mat.cc:
Eliminate simple uses of error_state.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 05 Oct 2015 21:13:12 -0400 |
parents | b597bd161a5f |
children | fd0efcdb3718 |
comparison
equal
deleted
inserted
replaced
20589:b10432a40432 | 20590:1a0a433c8263 |
---|---|
125 octave_value_list retval; | 125 octave_value_list retval; |
126 | 126 |
127 int argc = args.length () + 1; | 127 int argc = args.length () + 1; |
128 | 128 |
129 string_vector argv = args.make_argv ("cd"); | 129 string_vector argv = args.make_argv ("cd"); |
130 | |
131 if (error_state) | |
132 return retval; | |
133 | 130 |
134 if (nargout > 0) | 131 if (nargout > 0) |
135 retval = octave_value (octave_env::get_current_directory ()); | 132 retval = octave_value (octave_env::get_current_directory ()); |
136 | 133 |
137 if (argc > 1) | 134 if (argc > 1) |