Mercurial > octave
diff libinterp/parse-tree/oct-parse.in.yy @ 21021:a5b99b09f8fd
maint: Use comparison operators rather than compare() for strings.
* graphics.cc, graphics.in.h, load-path.cc, ls-oct-text.cc, ls-oct-text.h,
__init_fltk__.cc, oct-parse.in.yy, file-ops.cc:
Use comparison operators rather than compare() for strings.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 31 Dec 2015 13:39:25 -0800 |
parents | 9db35d2042be |
children | ec532a439c6f |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy Thu Dec 31 12:01:01 2015 +0100 +++ b/libinterp/parse-tree/oct-parse.in.yy Thu Dec 31 13:39:25 2015 -0800 @@ -4419,7 +4419,7 @@ autoload_map[argv[1]] = nm; else if (nargin == 3) { - if (argv[3].compare ("remove") != 0) + if (argv[3] != "remove") error_with_id ("Octave:invalid-input-arg", "autoload: third argument can only be 'remove'");