Remove not needed parameter mainWindow from windows heap widget

This commit is contained in:
Pulak Malhotra 2021-08-02 16:00:48 +05:30
parent e118f91cdd
commit 5ac4effabe
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ void HeapDockWidget::onAllocatorSelected(int index)
if (index == Glibc) { if (index == Glibc) {
currentHeapWidget = new GlibcHeapWidget(main, this); currentHeapWidget = new GlibcHeapWidget(main, this);
} else if (index == Windows) { } else if (index == Windows) {
currentHeapWidget = new WindowsHeapWidget(main, this); currentHeapWidget = new WindowsHeapWidget(this);
} }
ui->verticalLayout->addWidget(currentHeapWidget); ui->verticalLayout->addWidget(currentHeapWidget);

View File

@ -2,7 +2,7 @@
#include "WindowsHeapWidget.h" #include "WindowsHeapWidget.h"
#include "ui_WindowsHeapWidget.h" #include "ui_WindowsHeapWidget.h"
WindowsHeapWidget::WindowsHeapWidget(MainWindow *main, QWidget *parent) WindowsHeapWidget::WindowsHeapWidget(QWidget *parent)
: QWidget(parent), ui(new Ui::WindowsHeapWidget) : QWidget(parent), ui(new Ui::WindowsHeapWidget)
{ {
ui->setupUi(this); ui->setupUi(this);

View File

@ -39,7 +39,7 @@ class WindowsHeapWidget : public QWidget
Q_OBJECT Q_OBJECT
public: public:
explicit WindowsHeapWidget(MainWindow *main, QWidget *parent); explicit WindowsHeapWidget(QWidget *parent);
~WindowsHeapWidget(); ~WindowsHeapWidget();
private slots: private slots:
void updateContents(); void updateContents();