Mercurial > octave
diff libgui/src/qtinfo/webinfo.cc @ 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 |
parents | 7ae14907ae43 |
children | 36ececf69385 |
line wrap: on
line diff
--- a/libgui/src/qtinfo/webinfo.cc Wed Sep 05 08:14:37 2012 -0700 +++ b/libgui/src/qtinfo/webinfo.cc Wed Sep 05 11:41:21 2012 -0400 @@ -31,7 +31,7 @@ webinfo::webinfo (QWidget *parent) - :QWidget (parent) + : QWidget (parent) { _font_web = font (); @@ -90,14 +90,14 @@ } void -webinfo::set_info_path (QString info_path) +webinfo::set_info_path (const QString& info_path) { _parser.set_info_path (info_path); load_node ("Top"); } void -webinfo::load_node (QString node_name) +webinfo::load_node (const QString& node_name) { //Check if node has been already opened. for (int i = 0;i < _tab_bar->count (); i++) @@ -142,7 +142,7 @@ } QTextBrowser * -webinfo::addNewTab(QString name) +webinfo::addNewTab (const QString& name) { _text_browser = new QTextBrowser (this); _text_browser->setOpenLinks (false);