Mercurial > hg > octave-lyh
diff libgui/src/main-window.h @ 15300:fd27e10b9b05
pass QString by const reference instead of value
* files-dockwidget.cc, files-dockwidget.h, history-dockwidget.h,
file-editor-interface.h, file-editor-tab.cc, file-editor-tab.h,
file-editor.cc, file-editor.h, main-window.cc, main-window.h,
octave-qt-event-listener.h, parser.cc, parser.h, webinfo.cc,
webinfo.h, resource-manager.cc, resource-manager.h: For all functions
that take QString arguments, use "const Qstring&" instead of passing
QString by value.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 05 Sep 2012 11:41:21 -0400 (2012-09-05) |
parents | 359098ad343e |
children | 501a9cc2c68f |
line wrap: on
line diff
--- a/libgui/src/main-window.h +++ b/libgui/src/main-window.h @@ -83,15 +83,15 @@ void settings_changed (); public slots: - void report_status_message (QString statusMessage); + void report_status_message (const QString& statusMessage); void handle_save_workspace_request (); void handle_load_workspace_request (); void handle_clear_workspace_request (); void handle_clear_history_request (); - void handle_command_double_clicked (QString command); + void handle_command_double_clicked (const QString& command); void new_file (); void open_file (); - void open_file (QString file_name); + void open_file (const QString& file_name); void open_bug_tracker_page (); void open_agora_page (); void open_octave_forge_page (); @@ -100,9 +100,9 @@ void notice_settings (); void prepare_for_quit (); void reset_windows (); - void current_working_directory_has_changed (QString directory); + void current_working_directory_has_changed (const QString& directory); void change_current_working_directory (); - void set_current_working_directory (QString directory); + void set_current_working_directory (const QString& directory); void current_working_directory_up (); void focus_command_window ();