Mercurial > hg > octave-nkf
diff libgui/src/m-editor/file-editor-tab.h @ 15314:67ef63ead023
Merge in Thorsten Liebig's changes
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Thu, 06 Sep 2012 13:04:48 -0400 |
parents | d81105896288 fd27e10b9b05 |
children | 842ab161c10a |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.h +++ b/libgui/src/m-editor/file-editor-tab.h @@ -64,26 +64,25 @@ void set_modified (bool modified = true); - bool open_file (QString dir = QString ()); - void load_file (QString fileName); + bool open_file (const QString& dir = QString ()); + void load_file (const QString& fileName); void new_file (); bool save_file (); - bool save_file(QString saveFileName); + bool save_file (const QString& saveFileName); bool save_file_as(); void run_file (); - void file_has_changed (QString fileName); - + void file_has_changed (const QString& fileName); QString get_file_name () const {return _file_name;} signals: - void file_name_changed (QString fileName); + void file_name_changed (const QString& fileName); void editor_state_changed (); void close_request (); protected: void closeEvent (QCloseEvent *event); - void set_file_name (QString fileName); + void set_file_name (const QString& fileName); private: void update_lexer (); @@ -91,7 +90,7 @@ void request_remove_breakpoint (int line); void update_tracked_file (); - int check_file_modified (QString msg, int cancelButton); + int check_file_modified (const QString& msg, int cancelButton); void do_comment_selected_text (bool comment); file_editor * _file_editor;