From 36c2918c9980a343a50921e9f3443f39db82b7a2 Mon Sep 17 00:00:00 2001 From: Niklas Halle Date: Wed, 26 Aug 2020 12:05:23 +0200 Subject: better move? --- include/Handler.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/Handler.hpp b/include/Handler.hpp index 3328d91..b84315d 100644 --- a/include/Handler.hpp +++ b/include/Handler.hpp @@ -22,10 +22,12 @@ namespace Handler { } CommandHandler(CommandHandler &&o) noexcept { - func = o.func; + command = std::move(o.command); + func = std::move(o.func); description = o.description; o.description = nullptr; payload = o.payload; + o.payload = nullptr; } [[nodiscard]] json exec(std::string const &arguments, std::string const &session) const { -- cgit v1.2.3-54-g00ecf