diff options
author | Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com> | 2022-02-14 12:26:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 12:26:50 +0300 |
commit | 1fb7beae5e97aadf8471ae7b6e07f5c2e5f33c78 (patch) | |
tree | fc905cdb67494c5b7b59cb21465483f6d0464b31 /src/events.hpp | |
parent | 6df74a76eeacc5240d36fa7e62717cd1cdd238a7 (diff) | |
download | virtual-media-1fb7beae5e97aadf8471ae7b6e07f5c2e5f33c78.tar.xz |
Switch the build system to meson
Due to requirements from community, new projects have to be built with
meson.
To unify with other projects some additional warnings has been enabled,
so appropriate code updates has been implemented.
This commit makes both meson and CMake available to simplyfy transition
in openbmc. CMake support will be removed after switching to meson in
openbmc will be accepted.
Tested:
Compiled and smoke tested.
Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
Diffstat (limited to 'src/events.hpp')
-rw-r--r-- | src/events.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/events.hpp b/src/events.hpp index 320d344..03d0c50 100644 --- a/src/events.hpp +++ b/src/events.hpp @@ -11,8 +11,6 @@ struct BasicEvent { } - virtual ~BasicEvent() = default; - const char* eventName; }; @@ -22,7 +20,7 @@ struct RegisterDbusEvent : public BasicEvent std::shared_ptr<sdbusplus::asio::connection> bus, std::shared_ptr<sdbusplus::asio::object_server> objServer) : BasicEvent(__FUNCTION__), - bus(bus), objServer(objServer) + bus(std::move(bus)), objServer(std::move(objServer)) { } @@ -40,14 +38,16 @@ struct MountEvent : public BasicEvent } MountEvent(const MountEvent&) = delete; - MountEvent(MountEvent&& other) : + + MountEvent(MountEvent&& other) noexcept : BasicEvent(__FUNCTION__), target(std::move(other.target)) { other.target = std::nullopt; } MountEvent& operator=(const MountEvent&) = delete; - MountEvent& operator=(MountEvent&& other) + + MountEvent& operator=(MountEvent&& other) noexcept { target = std::nullopt; std::swap(target, other.target); |