From 5ac4effabe51f679a7a3844cdad94e8a0a9fbe81 Mon Sep 17 00:00:00 2001 From: Pulak Malhotra <56169176+PulakIIIT@users.noreply.github.com> Date: Mon, 2 Aug 2021 16:00:48 +0530 Subject: [PATCH] Remove not needed parameter `mainWindow` from windows heap widget --- src/widgets/HeapDockWidget.cpp | 2 +- src/widgets/WindowsHeapWidget.cpp | 2 +- src/widgets/WindowsHeapWidget.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widgets/HeapDockWidget.cpp b/src/widgets/HeapDockWidget.cpp index 1c96955f..e3de6b71 100644 --- a/src/widgets/HeapDockWidget.cpp +++ b/src/widgets/HeapDockWidget.cpp @@ -45,7 +45,7 @@ void HeapDockWidget::onAllocatorSelected(int index) if (index == Glibc) { currentHeapWidget = new GlibcHeapWidget(main, this); } else if (index == Windows) { - currentHeapWidget = new WindowsHeapWidget(main, this); + currentHeapWidget = new WindowsHeapWidget(this); } ui->verticalLayout->addWidget(currentHeapWidget); diff --git a/src/widgets/WindowsHeapWidget.cpp b/src/widgets/WindowsHeapWidget.cpp index 7651cd73..340e5a01 100644 --- a/src/widgets/WindowsHeapWidget.cpp +++ b/src/widgets/WindowsHeapWidget.cpp @@ -2,7 +2,7 @@ #include "WindowsHeapWidget.h" #include "ui_WindowsHeapWidget.h" -WindowsHeapWidget::WindowsHeapWidget(MainWindow *main, QWidget *parent) +WindowsHeapWidget::WindowsHeapWidget(QWidget *parent) : QWidget(parent), ui(new Ui::WindowsHeapWidget) { ui->setupUi(this); diff --git a/src/widgets/WindowsHeapWidget.h b/src/widgets/WindowsHeapWidget.h index a3dba66f..6f8219a2 100644 --- a/src/widgets/WindowsHeapWidget.h +++ b/src/widgets/WindowsHeapWidget.h @@ -39,7 +39,7 @@ class WindowsHeapWidget : public QWidget Q_OBJECT public: - explicit WindowsHeapWidget(MainWindow *main, QWidget *parent); + explicit WindowsHeapWidget(QWidget *parent); ~WindowsHeapWidget(); private slots: void updateContents();