Skip to content
Snippets Groups Projects
Commit 5850a092 authored by Gemma Guest's avatar Gemma Guest
Browse files

Remove unnecessary include statement

This causes a compile error unless the destructor is defined in the cpp file (see the comments on PR #26510)

Re #26498
parent 239db3f3
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,8 @@ MainWindowPresenter::MainWindowPresenter( ...@@ -33,6 +33,8 @@ MainWindowPresenter::MainWindowPresenter(
addNewBatch(batchView); addNewBatch(batchView);
} }
MainWindowPresenter::~MainWindowPresenter() = default;
void MainWindowPresenter::notifyNewBatchRequested() { void MainWindowPresenter::notifyNewBatchRequested() {
auto *newBatchView = m_view->newBatch(); auto *newBatchView = m_view->newBatch();
addNewBatch(newBatchView); addNewBatch(newBatchView);
......
...@@ -34,6 +34,7 @@ public: ...@@ -34,6 +34,7 @@ public:
MainWindowPresenter( MainWindowPresenter(
IMainWindowView *view, IMessageHandler *messageHandler, IMainWindowView *view, IMessageHandler *messageHandler,
std::unique_ptr<IBatchPresenterFactory> batchPresenterFactory); std::unique_ptr<IBatchPresenterFactory> batchPresenterFactory);
~MainWindowPresenter();
// IMainWindowPresenter overrides // IMainWindowPresenter overrides
bool isAnyBatchProcessing() const override; bool isAnyBatchProcessing() const override;
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#ifndef MANTID_ISISREFLECTOMETRY_QTMAINWINDOWVIEW_H #ifndef MANTID_ISISREFLECTOMETRY_QTMAINWINDOWVIEW_H
#define MANTID_ISISREFLECTOMETRY_QTMAINWINDOWVIEW_H #define MANTID_ISISREFLECTOMETRY_QTMAINWINDOWVIEW_H
#include "GUI/Batch/IBatchPresenterFactory.h"
#include "GUI/Common/IMessageHandler.h" #include "GUI/Common/IMessageHandler.h"
#include "GUI/Common/IPythonRunner.h" #include "GUI/Common/IPythonRunner.h"
#include "IMainWindowPresenter.h" #include "IMainWindowPresenter.h"
...@@ -17,6 +16,7 @@ ...@@ -17,6 +16,7 @@
#include "ui_MainWindowWidget.h" #include "ui_MainWindowWidget.h"
#include <QCloseEvent> #include <QCloseEvent>
#include <memory>
namespace MantidQt { namespace MantidQt {
namespace CustomInterfaces { namespace CustomInterfaces {
...@@ -34,6 +34,7 @@ class QtMainWindowView : public MantidQt::API::UserSubWindow, ...@@ -34,6 +34,7 @@ class QtMainWindowView : public MantidQt::API::UserSubWindow,
Q_OBJECT Q_OBJECT
public: public:
explicit QtMainWindowView(QWidget *parent = nullptr); explicit QtMainWindowView(QWidget *parent = nullptr);
void subscribe(MainWindowSubscriber *notifyee) override; void subscribe(MainWindowSubscriber *notifyee) override;
static std::string name() { return "ISIS Reflectometry"; } static std::string name() { return "ISIS Reflectometry"; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment