Mercurial > octave
diff libinterp/octave-value/ov-class.cc @ 21017:93748bcaec17
maint: Replace emtpy 'std::string ()' calls with "".
* Backend.cc, comment-list.h, debug.cc, defaults.in.h, dynamic-ld.h, error.cc,
graphics.cc, graphics.in.h, help.cc, hook-fcn.h, load-path.cc, load-path.h,
ls-ascii-helper.cc, ls-mat-ascii.cc, ls-mat5.cc, ls-mat5.h, ls-oct-text.cc,
oct-iostrm.h, oct-lvalue.h, oct-stream.cc, oct-stream.h, oct-strstrm.h,
regexp.cc, schur.cc, sqrtm.cc, strfns.cc, symtab.cc, symtab.h, sysdep.cc,
toplev.cc, urlwrite.cc, variables.cc, variables.h, ov-builtin.h, ov-cell.cc,
ov-class.cc, ov-classdef.cc, ov-classdef.h, ov-dld-fcn.h, ov-fcn-handle.cc,
ov-fcn-inline.cc, ov-fcn-inline.h, ov-fcn.h, ov-lazy-idx.cc, ov-mex-fcn.h,
ov-struct.cc, ov-typeinfo.cc, ov-typeinfo.h, ov-usr-fcn.cc, ov-usr-fcn.h, ov.h,
ovl.h, octave.cc, lex.h, parse.h, pt-classdef.h, pt-exp.cc, pt-pr-code.h,
token.h, version.cc, version.in.h, oct-rand.h, dir-ops.h, file-ops.cc,
file-ops.h, file-stat.h, oct-env.cc, oct-group.cc, oct-passwd.cc,
oct-syscalls.cc, cmd-edit.cc, cmd-edit.h, cmd-hist.cc, cmd-hist.h, kpse.cc,
lo-array-gripes.h, pathsearch.cc, pathsearch.h, str-vec.h, url-transfer.h:
Replace emtpy 'std::string ()' calls with "".
author | Rik <rik@octave.org> |
---|---|
date | Wed, 30 Dec 2015 12:33:33 -0800 |
parents | fc9cca99b2de |
children | ebc439187d29 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-class.cc Wed Dec 30 11:43:29 2015 -0800 +++ b/libinterp/octave-value/ov-class.cc Wed Dec 30 12:33:33 2015 -0800 @@ -1168,7 +1168,7 @@ { os << "# classname: " << class_name () << "\n"; octave_map m; - if (load_path::find_method (class_name (), "saveobj") != std::string ()) + if (load_path::find_method (class_name (), "saveobj") != "") { octave_value in = new octave_class (*this); octave_value_list tmp = feval ("saveobj", in, 1); @@ -1219,7 +1219,7 @@ // recurse to read cell elements std::string nm - = read_text_data (is, std::string (), dummy, t2, j); + = read_text_data (is, "", dummy, t2, j); if (! is) break; @@ -1241,7 +1241,7 @@ warning ("load: unable to reconstruct object inheritance"); if (load_path::find_method (classname, "loadobj") - != std::string ()) + != "") { octave_value in = new octave_class (*this); octave_value_list tmp = feval ("loadobj", in, 1); @@ -1269,7 +1269,7 @@ os << class_name (); octave_map m; - if (load_path::find_method (class_name (), "saveobj") != std::string ()) + if (load_path::find_method (class_name (), "saveobj") != "") { octave_value in = new octave_class (*this); octave_value_list tmp = feval ("saveobj", in, 1); @@ -1338,7 +1338,7 @@ std::string doc; // recurse to read cell elements - std::string nm = read_binary_data (is, swap, fmt, std::string (), + std::string nm = read_binary_data (is, swap, fmt, "", dummy, t2, doc); if (! is) @@ -1356,7 +1356,7 @@ if (! reconstruct_parents ()) warning ("load: unable to reconstruct object inheritance"); - if (load_path::find_method (c_name, "loadobj") != std::string ()) + if (load_path::find_method (c_name, "loadobj") != "") { octave_value in = new octave_class (*this); octave_value_list tmp = feval ("loadobj", in, 1); @@ -1429,7 +1429,7 @@ if (data_hid < 0) goto error_cleanup; - if (load_path::find_method (class_name (), "saveobj") != std::string ()) + if (load_path::find_method (class_name (), "saveobj") != "") { octave_value in = new octave_class (*this); octave_value_list tmp = feval ("saveobj", in, 1); @@ -1591,7 +1591,7 @@ if (! reconstruct_parents ()) warning ("load: unable to reconstruct object inheritance"); - if (load_path::find_method (c_name, "loadobj") != std::string ()) + if (load_path::find_method (c_name, "loadobj") != "") { octave_value in = new octave_class (*this); octave_value_list tmp = feval ("loadobj", in, 1); @@ -1929,7 +1929,7 @@ std::string method = args(1).string_value (); - if (load_path::find_method (class_name, method) != std::string ()) + if (load_path::find_method (class_name, method) != "") return ovl (true); else return ovl (false);