changeset 23148:00ce7388d044

eliminate static string object * bp-table.h (bp_empty_string): Delete static object. (bp_table::add_breakpoint): Use "" instead of bp_empty_string.
author John W. Eaton <jwe@octave.org>
date Sat, 04 Feb 2017 15:05:29 -0500
parents eb5a162c1342
children f81c759dfae7
files libinterp/parse-tree/bp-table.h
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/bp-table.h	Sat Feb 04 09:29:42 2017 -0800
+++ b/libinterp/parse-tree/bp-table.h	Sat Feb 04 15:05:29 2017 -0500
@@ -33,8 +33,6 @@
 class octave_user_code;
 class octave_value_list;
 
-static std::string bp_empty_string ("");
-
 struct
 bp_type
 {
@@ -77,7 +75,7 @@
   // Add a breakpoint at the nearest executable line.
   static intmap add_breakpoint (const std::string& fname = "",
                                 const intmap& lines = intmap (),
-                                const std::string& condition = bp_empty_string)
+                                const std::string& condition = "")
   {
     return instance_ok ()
            ? instance->do_add_breakpoint (fname, lines, condition) : intmap ();