diff --git a/src/core/toxid.h b/src/core/toxid.h index a82f5bddb..a9694f510 100644 --- a/src/core/toxid.h +++ b/src/core/toxid.h @@ -35,6 +35,8 @@ public: explicit ToxId(const QString& id); explicit ToxId(const QByteArray& rawId); explicit ToxId(const uint8_t* rawId, int len); + ToxId& operator=(const ToxId& other) = default; + ToxId& operator=(ToxId&& other) = default; bool operator==(const ToxId& other) const; bool operator!=(const ToxId& other) const; diff --git a/src/core/toxpk.h b/src/core/toxpk.h index 0e29029ea..e0aab9583 100644 --- a/src/core/toxpk.h +++ b/src/core/toxpk.h @@ -12,6 +12,8 @@ public: ToxPk(const ToxPk& other); explicit ToxPk(const QByteArray& rawId); explicit ToxPk(const uint8_t* rawId); + ToxPk& operator=(const ToxPk& other) = default; + ToxPk& operator=(ToxPk&& other) = default; bool operator==(const ToxPk& other) const; bool operator!=(const ToxPk& other) const;