mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Mark missing ctors deleted
- Satisfy the rule of five Signed-off-by: Veli-Matti Visuri <veli-matti.visuri@cerescon.fi> (github: visuve)
This commit is contained in:
@@ -26,10 +26,14 @@ namespace qthelp {
|
|||||||
|
|
||||||
class RegularExpressionMatch {
|
class RegularExpressionMatch {
|
||||||
public:
|
public:
|
||||||
|
RegularExpressionMatch(const QRegularExpressionMatch &other) = delete;
|
||||||
|
RegularExpressionMatch(const RegularExpressionMatch &other) = delete;
|
||||||
RegularExpressionMatch(QRegularExpressionMatch &&match) : data_(std::move(match)) {
|
RegularExpressionMatch(QRegularExpressionMatch &&match) : data_(std::move(match)) {
|
||||||
}
|
}
|
||||||
RegularExpressionMatch(RegularExpressionMatch &&other) : data_(std::move(other.data_)) {
|
RegularExpressionMatch(RegularExpressionMatch &&other) : data_(std::move(other.data_)) {
|
||||||
}
|
}
|
||||||
|
RegularExpressionMatch &operator=(const QRegularExpressionMatch &match) = delete;
|
||||||
|
RegularExpressionMatch &operator=(const RegularExpressionMatch &other) = delete;
|
||||||
RegularExpressionMatch &operator=(QRegularExpressionMatch &&match) {
|
RegularExpressionMatch &operator=(QRegularExpressionMatch &&match) {
|
||||||
data_ = std::move(match);
|
data_ = std::move(match);
|
||||||
return *this;
|
return *this;
|
||||||
|
@@ -146,6 +146,10 @@ struct HistoryMessageForwarded : public RuntimeComponent<HistoryMessageForwarded
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct HistoryMessageReply : public RuntimeComponent<HistoryMessageReply> {
|
struct HistoryMessageReply : public RuntimeComponent<HistoryMessageReply> {
|
||||||
|
HistoryMessageReply() = default;
|
||||||
|
HistoryMessageReply(const HistoryMessageReply &other) = delete;
|
||||||
|
HistoryMessageReply(HistoryMessageReply &&other) = delete;
|
||||||
|
HistoryMessageReply &operator=(const HistoryMessageReply &other) = delete;
|
||||||
HistoryMessageReply &operator=(HistoryMessageReply &&other) {
|
HistoryMessageReply &operator=(HistoryMessageReply &&other) {
|
||||||
replyToMsgId = other.replyToMsgId;
|
replyToMsgId = other.replyToMsgId;
|
||||||
std::swap(replyToMsg, other.replyToMsg);
|
std::swap(replyToMsg, other.replyToMsg);
|
||||||
|
Reference in New Issue
Block a user