From 3197d5cc2fe37ebed74fc798c4a715244f83d73b Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 10 Jun 2012 20:49:50 +0300 Subject: [PATCH] Minor code optimization --- src/mainwindow.cpp | 2 +- src/mainwindow.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4872bf8d2..823f74ced 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -95,7 +95,7 @@ using namespace libtorrent; *****************************************************/ // 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); Preferences pref; diff --git a/src/mainwindow.h b/src/mainwindow.h index 8bc106f99..97d8516e8 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -70,7 +70,7 @@ class MainWindow : public QMainWindow, private Ui::MainWindow{ public: // Construct / Destruct - MainWindow(QWidget *parent=0, QStringList torrentCmdLine=QStringList()); + MainWindow(QWidget *parent=0, const QStringList& torrentCmdLine = QStringList()); ~MainWindow(); // Methods QWidget* getCurrentTabWidget() const;