Mercurial > hg > octave-nkf
diff libgui/src/m-editor/file-editor-tab.h @ 18236:f26d527c1a71 stable
allow the gui editor to set breakpoints in class methods (bug #41126)
* file-editor-tab.h, file-editor-tab.cc (bp_info::bp_info):
Construct bp_info struct from file name and line number instead of
individual struct components. Change all uses. Recognize class name
in file names that match /dir/@class/fcn.m.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 07 Jan 2014 16:01:44 -0500 |
parents | c3e7da9836bd |
children | 3a26bb54655e c766a1f63c40 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.h +++ b/libgui/src/m-editor/file-editor-tab.h @@ -165,15 +165,12 @@ struct bp_info { - bp_info (const QString& f, const QString& d, const QString& fn, int l) - : file (f.toStdString ()), dir (d.toStdString ()), - function_name (fn.toStdString ()), line (l) - { } + bp_info (const QString& fname, int l = 0); + int line; std::string file; std::string dir; std::string function_name; - int line; }; bool valid_file_name (const QString& file=QString ());