diff options
author | louiz’ <louiz@louiz.org> | 2017-07-08 14:04:35 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-07-08 14:04:35 +0200 |
commit | faed8952cb6ba063e5424364df69cef193fb736e (patch) | |
tree | c7a4b744db70bb12b7dca9fcc6f724ab0a6993da /src/xmpp/adhoc_commands_handler.cpp | |
parent | 7a9b2dca06c390531ec7f5d85e58cc27e17e7b74 (diff) | |
download | biboumi-faed8952cb6ba063e5424364df69cef193fb736e.tar.gz biboumi-faed8952cb6ba063e5424364df69cef193fb736e.tar.bz2 biboumi-faed8952cb6ba063e5424364df69cef193fb736e.tar.xz biboumi-faed8952cb6ba063e5424364df69cef193fb736e.zip |
Remove a bunch of useless string_literal usage
Diffstat (limited to 'src/xmpp/adhoc_commands_handler.cpp')
-rw-r--r-- | src/xmpp/adhoc_commands_handler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmpp/adhoc_commands_handler.cpp b/src/xmpp/adhoc_commands_handler.cpp index 040d0ff..e4dcd5c 100644 --- a/src/xmpp/adhoc_commands_handler.cpp +++ b/src/xmpp/adhoc_commands_handler.cpp @@ -19,7 +19,7 @@ void AdhocCommandsHandler::add_command(std::string name, AdhocCommand command) { const auto found = this->commands.find(name); if (found != this->commands.end()) - throw std::runtime_error("Trying to add an ad-hoc command that already exist: "s + name); + throw std::runtime_error("Trying to add an ad-hoc command that already exist: " + name); this->commands.emplace(std::make_pair(std::move(name), std::move(command))); } @@ -59,7 +59,7 @@ XmlNode AdhocCommandsHandler::handle_request(const std::string& executor_jid, co std::forward_as_tuple(command_it->second, executor_jid, to)); TimedEventsManager::instance().add_event(TimedEvent(std::chrono::steady_clock::now() + 3600s, std::bind(&AdhocCommandsHandler::remove_session, this, sessionid, executor_jid), - "adhocsession"s + sessionid + executor_jid)); + "adhocsession" + sessionid + executor_jid)); } auto session_it = this->sessions.find(std::make_pair(sessionid, executor_jid)); if ((session_it != this->sessions.end()) && @@ -74,7 +74,7 @@ XmlNode AdhocCommandsHandler::handle_request(const std::string& executor_jid, co { this->sessions.erase(session_it); command_node["status"] = "completed"; - TimedEventsManager::instance().cancel("adhocsession"s + sessionid + executor_jid); + TimedEventsManager::instance().cancel("adhocsession" + sessionid + executor_jid); } else { @@ -87,7 +87,7 @@ XmlNode AdhocCommandsHandler::handle_request(const std::string& executor_jid, co { this->sessions.erase(session_it); command_node["status"] = "canceled"; - TimedEventsManager::instance().cancel("adhocsession"s + sessionid + executor_jid); + TimedEventsManager::instance().cancel("adhocsession" + sessionid + executor_jid); } else // unsupported action { |