clang-error: fix clang-diagnostic-defaulted-function-deleted error
The clang-diagnostic-defaulted-function-deleted error is generated when
explicitly defaulted move assignment operator is implicitly deleted.
This commit fixes those errors.
Change-Id: I7a407dd3411b19a73a13b1c1e4805b89fc2ec51a
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/pldmtool/oem/ibm/pldm_oem_ibm.cpp b/pldmtool/oem/ibm/pldm_oem_ibm.cpp
index cdaa2d5..100857e 100644
--- a/pldmtool/oem/ibm/pldm_oem_ibm.cpp
+++ b/pldmtool/oem/ibm/pldm_oem_ibm.cpp
@@ -37,7 +37,7 @@
GetAlertStatus(const GetAlertStatus&) = delete;
GetAlertStatus(GetAlertStatus&&) = default;
GetAlertStatus& operator=(const GetAlertStatus&) = delete;
- GetAlertStatus& operator=(GetAlertStatus&&) = default;
+ GetAlertStatus& operator=(GetAlertStatus&&) = delete;
explicit GetAlertStatus(const char* type, const char* name, CLI::App* app) :
CommandInterface(type, name, app)
@@ -99,7 +99,7 @@
GetFileTable(const GetFileTable&) = delete;
GetFileTable(GetFileTable&&) = default;
GetFileTable& operator=(const GetFileTable&) = delete;
- GetFileTable& operator=(GetFileTable&&) = default;
+ GetFileTable& operator=(GetFileTable&&) = delete;
using CommandInterface::CommandInterface;