mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Minor code optimization
This commit is contained in:
parent
81e4e39878
commit
3197d5cc2f
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue