summaryrefslogtreecommitdiff
path: root/src/xmpp/adhoc_command.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-04-07 18:45:24 +0200
committerlouiz’ <louiz@louiz.org>2017-04-07 18:45:24 +0200
commit5402a256d1f0ebbeafa32d250d000cf38fe748fb (patch)
tree7132c08b9465823c0fd5066eca1fac61ffa7185c /src/xmpp/adhoc_command.cpp
parentdd4c54c6cde55c034d756fb736259ce51e0120dc (diff)
downloadbiboumi-5402a256d1f0ebbeafa32d250d000cf38fe748fb.tar.gz
biboumi-5402a256d1f0ebbeafa32d250d000cf38fe748fb.tar.bz2
biboumi-5402a256d1f0ebbeafa32d250d000cf38fe748fb.tar.xz
biboumi-5402a256d1f0ebbeafa32d250d000cf38fe748fb.zip
Apply all the clang-tidy modernize-* fixes
Diffstat (limited to 'src/xmpp/adhoc_command.cpp')
-rw-r--r--src/xmpp/adhoc_command.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xmpp/adhoc_command.cpp b/src/xmpp/adhoc_command.cpp
index 825cc92..e02bf35 100644
--- a/src/xmpp/adhoc_command.cpp
+++ b/src/xmpp/adhoc_command.cpp
@@ -1,11 +1,12 @@
+#include <utility>
#include <xmpp/adhoc_command.hpp>
#include <xmpp/xmpp_component.hpp>
#include <utils/reload.hpp>
using namespace std::string_literals;
-AdhocCommand::AdhocCommand(std::vector<AdhocStep>&& callbacks, const std::string& name, const bool admin_only):
- name(name),
+AdhocCommand::AdhocCommand(std::vector<AdhocStep>&& callbacks, std::string name, const bool admin_only):
+ name(std::move(name)),
callbacks(std::move(callbacks)),
admin_only(admin_only)
{