Commit aff3ddf4 authored by Don Gagne's avatar Don Gagne

Remove unused parameter

parent 7c5688a5
...@@ -395,7 +395,7 @@ void MainWindow::_buildCommonWidgets(void) ...@@ -395,7 +395,7 @@ void MainWindow::_buildCommonWidgets(void)
// Log player // Log player
// TODO: Make this optional with a preferences setting or under a "View" menu // TODO: Make this optional with a preferences setting or under a "View" menu
logPlayer = new QGCMAVLinkLogPlayer(MAVLinkProtocol::instance(), statusBar()); logPlayer = new QGCMAVLinkLogPlayer(statusBar());
statusBar()->addPermanentWidget(logPlayer); statusBar()->addPermanentWidget(logPlayer);
// In order for Qt to save and restore state of widgets all widgets must be created ahead of time. We only create the QDockWidget // In order for Qt to save and restore state of widgets all widgets must be created ahead of time. We only create the QDockWidget
......
...@@ -13,13 +13,11 @@ ...@@ -13,13 +13,11 @@
#include "QGCFileDialog.h" #include "QGCFileDialog.h"
#include "QGCMessageBox.h" #include "QGCMessageBox.h"
QGCMAVLinkLogPlayer::QGCMAVLinkLogPlayer(MAVLinkProtocol* mavlink, QWidget *parent) : QGCMAVLinkLogPlayer::QGCMAVLinkLogPlayer(QWidget *parent) :
QWidget(parent), QWidget(parent),
_replayLink(NULL), _replayLink(NULL),
_ui(new Ui::QGCMAVLinkLogPlayer) _ui(new Ui::QGCMAVLinkLogPlayer)
{ {
Q_ASSERT(mavlink);
_ui->setupUi(this); _ui->setupUi(this);
_ui->horizontalLayout->setAlignment(Qt::AlignTop); _ui->horizontalLayout->setAlignment(Qt::AlignTop);
......
...@@ -25,7 +25,7 @@ class QGCMAVLinkLogPlayer : public QWidget ...@@ -25,7 +25,7 @@ class QGCMAVLinkLogPlayer : public QWidget
Q_OBJECT Q_OBJECT
public: public:
explicit QGCMAVLinkLogPlayer(MAVLinkProtocol* mavlink, QWidget *parent = 0); explicit QGCMAVLinkLogPlayer(QWidget *parent = 0);
~QGCMAVLinkLogPlayer(); ~QGCMAVLinkLogPlayer();
private slots: private slots:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment