Browse Source

Minor code optimization

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
3197d5cc2f
  1. 2
      src/mainwindow.cpp
  2. 2
      src/mainwindow.h

2
src/mainwindow.cpp

@ -95,7 +95,7 @@ using namespace libtorrent;
*****************************************************/ *****************************************************/
// Constructor // Constructor
MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), m_posInitialized(false), force_exit(false) { MainWindow::MainWindow(QWidget *parent, const QStringList& torrentCmdLine) : QMainWindow(parent), m_posInitialized(false), force_exit(false) {
setupUi(this); setupUi(this);
Preferences pref; Preferences pref;

2
src/mainwindow.h

@ -70,7 +70,7 @@ class MainWindow : public QMainWindow, private Ui::MainWindow{
public: public:
// Construct / Destruct // Construct / Destruct
MainWindow(QWidget *parent=0, QStringList torrentCmdLine=QStringList()); MainWindow(QWidget *parent=0, const QStringList& torrentCmdLine = QStringList());
~MainWindow(); ~MainWindow();
// Methods // Methods
QWidget* getCurrentTabWidget() const; QWidget* getCurrentTabWidget() const;

Loading…
Cancel
Save