Add copy c'tor for `AbortableProgressFeedback` to fix compilation with MSVC

This commit is contained in:
Martchus 2023-02-01 14:36:11 +01:00
parent dc4e4082e0
commit 7873db611a
1 changed files with 10 additions and 0 deletions

View File

@ -187,6 +187,7 @@ class AbortableProgressFeedback : public BasicProgressFeedback<AbortableProgress
public:
explicit AbortableProgressFeedback(const Callback &callback, const Callback &percentageOnlyCallback = Callback());
explicit AbortableProgressFeedback(Callback &&callback = Callback(), Callback &&percentageOnlyCallback = Callback());
AbortableProgressFeedback(const AbortableProgressFeedback&);
bool isAborted() const;
void tryToAbort();
@ -220,6 +221,15 @@ inline AbortableProgressFeedback::AbortableProgressFeedback(Callback &&callback,
{
}
/*!
/* \brief Constructs a new AbortableProgressFeedback based on \a other.
*/
inline AbortableProgressFeedback::AbortableProgressFeedback(const AbortableProgressFeedback& other)
: BasicProgressFeedback<AbortableProgressFeedback>(other)
, m_aborted(other.isAborted())
{
}
/*!
* \brief Returns whether the operation has been aborted via tryToAbort().
*/