clang-tidy: Delete unused copy/move ctor/operator
Explicitly delete the copy assignment, move assignment, and move
constructors on the classes where they are unused.
Change-Id: I73298debb4e3e894af5a02006b87d26b70f4535d
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/extensions/openpower-pels/service_indicators.hpp b/extensions/openpower-pels/service_indicators.hpp
index 46e7b1f..5375e13 100644
--- a/extensions/openpower-pels/service_indicators.hpp
+++ b/extensions/openpower-pels/service_indicators.hpp
@@ -17,9 +17,9 @@
Policy() = delete;
virtual ~Policy() = default;
Policy(const Policy&) = default;
- Policy& operator=(const Policy&) = default;
- Policy(Policy&&) = default;
- Policy& operator=(Policy&&) = default;
+ Policy& operator=(const Policy&) = delete;
+ Policy(Policy&&) = delete;
+ Policy& operator=(Policy&&) = delete;
/**
* @brief Constructor
@@ -59,9 +59,9 @@
LightPath() = delete;
virtual ~LightPath() = default;
LightPath(const LightPath&) = default;
- LightPath& operator=(const LightPath&) = default;
- LightPath(LightPath&&) = default;
- LightPath& operator=(LightPath&&) = default;
+ LightPath& operator=(const LightPath&) = delete;
+ LightPath(LightPath&&) = delete;
+ LightPath& operator=(LightPath&&) = delete;
/**
* @brief Constructor