Verified Commit f7294de0 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Fix core exceptions not being copyable/movable

parent aa9b099a
Pipeline #22378 passed with stage
in 12 minutes and 50 seconds
......@@ -58,6 +58,8 @@ Exception::Exception(const QString &what)
}
}
Exception::Exception(Exception &&) noexcept = default;
Exception::~Exception() = default;
QByteArray Exception::type() const
......
......@@ -58,6 +58,8 @@ public:
*/
explicit Exception(const QString &what);
Exception(Exception &&) noexcept;
/**
Destructor.
*/
......@@ -74,8 +76,6 @@ public:
virtual QByteArray type() const; // ### Akonadi 2: return const char *
private:
Q_DISABLE_COPY_MOVE(Exception)
class Private;
std::unique_ptr<Private> d;
};
......@@ -90,6 +90,7 @@ private:
explicit classname(const char *what): Akonadi::Exception(what) {} \
explicit classname(const QByteArray &what): Akonadi::Exception(what) {} \
explicit classname(const QString &what): Akonadi::Exception(what) {} \
classname(classname &&) = default; \
~classname() override; \
QByteArray type() const override; \
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment