comparison libgui/src/qtinfo/webinfo.h @ 15304:fd27e10b9b05 draft

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 017f0b2e6933
children
comparison
equal deleted inserted replaced
15303:8bd5c490b787 15304:fd27e10b9b05
29 class webinfo : public QWidget 29 class webinfo : public QWidget
30 { 30 {
31 Q_OBJECT 31 Q_OBJECT
32 public: 32 public:
33 webinfo (QWidget *parent = 0); 33 webinfo (QWidget *parent = 0);
34 void set_info_path (QString info_path); 34 void set_info_path (const QString& info_path);
35 void load_node (QString node_name); 35 void load_node (const QString& node_name);
36 36
37 public slots: 37 public slots:
38 void link_clicked (const QUrl &link); 38 void link_clicked (const QUrl& link);
39 void current_tab_changed (int index); 39 void current_tab_changed (int index);
40 void close_tab (); 40 void close_tab ();
41 void search (); 41 void search ();
42 void zoom_in (); 42 void zoom_in ();
43 void zoom_out (); 43 void zoom_out ();
53 QToolButton *_zoom_out_button; 53 QToolButton *_zoom_out_button;
54 54
55 parser _parser; 55 parser _parser;
56 QFont _font_web; 56 QFont _font_web;
57 57
58 QTextBrowser *addNewTab (QString name); 58 QTextBrowser *addNewTab (const QString& name);
59 void closeTab(int index); 59 void closeTab(int index);
60 }; 60 };