diff options
author | Niklas Halle <niklas@niklashalle.net> | 2020-08-26 12:05:23 +0200 |
---|---|---|
committer | Niklas Halle <niklas@niklashalle.net> | 2020-08-26 12:06:34 +0200 |
commit | 36c2918c9980a343a50921e9f3443f39db82b7a2 (patch) | |
tree | 3a2e256eba84f02776556a3832d5ff8d421b67d9 /include | |
parent | 1efd8ab1b4d4a2b1c8236aee33f51d960964c20b (diff) | |
download | n_core-36c2918c9980a343a50921e9f3443f39db82b7a2.tar.gz n_core-36c2918c9980a343a50921e9f3443f39db82b7a2.zip |
better move?
Diffstat (limited to 'include')
-rw-r--r-- | include/Handler.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |