host-bmc: motherboard: Delete move methods
```
In file included from ../host-bmc/host_pdr_handler.cpp:7:
In file included from ../host-bmc/dbus/custom_dbus.hpp:6:
../host-bmc/dbus/motherboard.hpp:29:5: error: explicitly defaulted move constructor is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
29 | Motherboard(Motherboard&&) = default;
| ^
../host-bmc/dbus/motherboard.hpp:22:21: note: move constructor of 'Motherboard' is implicitly deleted because base class 'ItemMotherboard' (aka 'object<sdbusplus::server::xyz::openbmc_project::inventory::item::board::Motherboard>') has a deleted move constructor
22 | class Motherboard : public ItemMotherboard
| ^
../subprojects/sdbusplus/include/sdbusplus/server/object.hpp:54:5: note: 'object' has been explicitly marked deleted here
54 | object(object&&) = delete;
| ^
../host-bmc/dbus/motherboard.hpp:29:34: note: replace 'default' with 'delete'
29 | Motherboard(Motherboard&&) = default;
| ^~~~~~~
| delete
../host-bmc/dbus/motherboard.hpp:30:18: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
30 | Motherboard& operator=(Motherboard&&) = default;
| ^
../host-bmc/dbus/motherboard.hpp:22:21: note: move assignment operator of 'Motherboard' is implicitly deleted because base class 'ItemMotherboard' (aka 'object<sdbusplus::server::xyz::openbmc_project::inventory::item::board::Motherboard>') has a deleted move assignment operator
22 | class Motherboard : public ItemMotherboard
| ^
../subprojects/sdbusplus/include/sdbusplus/server/object.hpp:55:13: note: 'operator=' has been explicitly marked deleted here
55 | object& operator=(object&&) = delete;
| ^
../host-bmc/dbus/motherboard.hpp:30:45: note: replace 'default' with 'delete'
30 | Motherboard& operator=(Motherboard&&) = default;
| ^~~~~~~
| delete
```
Change-Id: If739f3d044c559f56dab143d5c53800a9d6f5082
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/host-bmc/dbus/motherboard.hpp b/host-bmc/dbus/motherboard.hpp
index abf061c..bf62036 100644
--- a/host-bmc/dbus/motherboard.hpp
+++ b/host-bmc/dbus/motherboard.hpp
@@ -26,8 +26,8 @@
~Motherboard() = default;
Motherboard(const Motherboard&) = delete;
Motherboard& operator=(const Motherboard&) = delete;
- Motherboard(Motherboard&&) = default;
- Motherboard& operator=(Motherboard&&) = default;
+ Motherboard(Motherboard&&) = delete;
+ Motherboard& operator=(Motherboard&&) = delete;
Motherboard(sdbusplus::bus_t& bus, const std::string& objPath) :
ItemMotherboard(bus, objPath.c_str())