diff libinterp/octave-value/ov-cell.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-cell.cc	Wed Dec 30 11:43:29 2015 -0800
+++ b/libinterp/octave-value/ov-cell.cc	Wed Dec 30 12:33:33 2015 -0800
@@ -603,7 +603,7 @@
       else if (pad)
         retval[k++] = std::string (max_len, ' ');
       else
-        retval[k++] = std::string ();
+        retval[k++] = "";
     }
 
   return retval;
@@ -794,7 +794,7 @@
           bool dummy;
 
           // recurse to read cell elements
-          std::string nm = read_text_data (is, std::string (),
+          std::string nm = read_text_data (is, "",
                                            dummy, t2, i);
 
           if (nm != CELL_ELT_TAG)
@@ -829,7 +829,7 @@
                   bool dummy;
 
                   // recurse to read cell elements
-                  std::string nm = read_text_data (is, std::string (),
+                  std::string nm = read_text_data (is, "",
                                                    dummy, t2, i);
 
                   if (nm != CELL_ELT_TAG)
@@ -939,7 +939,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 (nm != CELL_ELT_TAG)
@@ -1282,7 +1282,7 @@
     {
       string_vector s = args(0).xstring_vector_value ("cellstr: argument STRING must be a 2-D character array");
 
-      return ovl (s.is_empty () ? Cell (octave_value (std::string ()))
+      return ovl (s.is_empty () ? Cell (octave_value (""))
                                 : Cell (s, true));
     }
 }