From 14ef6a25ab19236abae196c810ffdf0259a13354 Mon Sep 17 00:00:00 2001 From: Gemma Guest <gemma.guest@stfc.ac.uk> Date: Mon, 12 Aug 2019 13:01:47 +0100 Subject: [PATCH] Fix complier error due to missing move constructor Force the compiler to generate the move constructor/assignment operator. These are no longer implicitly declared since the addition of the user-declared destructor. Also delete the copy constructor/assignment operator as these are illegal operations. Re #26498 --- .../ISISReflectometry/GUI/MainWindow/MainWindowPresenter.cpp | 5 +++++ .../ISISReflectometry/GUI/MainWindow/MainWindowPresenter.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.cpp b/qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.cpp index 405b2e1e6c8..a1ab71c3d3a 100644 --- a/qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.cpp +++ b/qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.cpp @@ -35,6 +35,11 @@ MainWindowPresenter::MainWindowPresenter( MainWindowPresenter::~MainWindowPresenter() = default; +MainWindowPresenter::MainWindowPresenter(MainWindowPresenter &&) = default; + +MainWindowPresenter &MainWindowPresenter:: +operator=(MainWindowPresenter &&) = default; + void MainWindowPresenter::notifyNewBatchRequested() { auto *newBatchView = m_view->newBatch(); addNewBatch(newBatchView); diff --git a/qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.h b/qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.h index 88bd159188b..2b5bf8be984 100644 --- a/qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.h +++ b/qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.h @@ -35,6 +35,10 @@ public: IMainWindowView *view, IMessageHandler *messageHandler, std::unique_ptr<IBatchPresenterFactory> batchPresenterFactory); ~MainWindowPresenter(); + MainWindowPresenter(MainWindowPresenter const &) = delete; + MainWindowPresenter(MainWindowPresenter &&); + MainWindowPresenter &operator=(MainWindowPresenter const &) = delete; + MainWindowPresenter &operator=(MainWindowPresenter &&); // IMainWindowPresenter overrides bool isAnyBatchProcessing() const override; -- GitLab