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

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
parent 5850a092
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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;
......
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