summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Martins <[email protected]>2015-11-04 21:30:06 +0000
committerSergio Martins <[email protected]>2015-11-04 21:30:06 +0000
commit41c48818425152aad42c4491bd9edddab6ef15e3 (patch)
treebdac418c39a0d8be33472ba7b104fe9c574c95ce
parent6f0f636e6fe11ea0b9dc03d1382373095e01ac2b (diff)
Remove MessageStatus::operator= [-Wclazy-rule-of-two]
The auto-generated one is fine and the class didn't implement a copy-ctor.
-rw-r--r--akonadi-mime/src/messagestatus.cpp6
-rw-r--r--akonadi-mime/src/messagestatus.h7
2 files changed, 0 insertions, 13 deletions
diff --git a/akonadi-mime/src/messagestatus.cpp b/akonadi-mime/src/messagestatus.cpp
index 592f67e..3cbfba6 100644
--- a/akonadi-mime/src/messagestatus.cpp
+++ b/akonadi-mime/src/messagestatus.cpp
@@ -59,12 +59,6 @@ Akonadi::MessageStatus::MessageStatus()
mStatus = StatusUnknown;
}
-Akonadi::MessageStatus &Akonadi::MessageStatus::operator=(const Akonadi::MessageStatus &other)
-{
- mStatus = other.mStatus;
- return *this;
-}
-
bool Akonadi::MessageStatus::operator==(const Akonadi::MessageStatus &other) const
{
return (mStatus == other.mStatus);
diff --git a/akonadi-mime/src/messagestatus.h b/akonadi-mime/src/messagestatus.h
index 13bec1d..ecdbe0a 100644
--- a/akonadi-mime/src/messagestatus.h
+++ b/akonadi-mime/src/messagestatus.h
@@ -55,13 +55,6 @@ public:
/** Constructor - sets status initially to unknown. */
MessageStatus();
- /** Assign the status from another instance. The internal
- representation is identical afterwards, i.e. a comparison
- by operator == will return true.
- @param other message status to copy from
- */
- MessageStatus &operator=(const MessageStatus &other);
-
/** Compare the status with that from another instance.
@return true if the stati are equal, false if different.
@param other message status to compare with current object