Mercurial > octave
diff libinterp/dldfcn/__init_fltk__.cc @ 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 | ea779f11deae |
children | bd1752782e56 |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc Thu Dec 31 12:01:01 2015 +0100 +++ b/libinterp/dldfcn/__init_fltk__.cc Thu Dec 31 13:39:25 2015 -0800 @@ -297,7 +297,7 @@ menupath += "/"; menupath += m->label (); - if (menupath.compare (findname) == 0) + if (menupath == findname) return (t); } else @@ -318,7 +318,7 @@ itempath += "/"; itempath += m->label (); - if (itempath.compare (findname) == 0) + if (itempath == findname) return (t); } } @@ -672,9 +672,9 @@ } } - if (type.compare ("uimenu") == 0) + if (type == "uimenu") delete_entry (dynamic_cast<uimenu::properties&> (prop)); - else if (type.compare ("figure") == 0) + else if (type == "figure") menubar->clear (); } @@ -1591,7 +1591,7 @@ (ax_obj.get_properties ()); // Don't pan or rotate legend - if (ap.get_tag ().compare ("legend") < 0) + if (ap.get_tag () == "legend") { if (rotate_enabled ()) view2status (ax_obj);