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/xmpp_component.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/xmpp_component.cpp')
-rw-r--r-- | src/xmpp/xmpp_component.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp index b138ed9..3c69b36 100644 --- a/src/xmpp/xmpp_component.cpp +++ b/src/xmpp/xmpp_component.cpp @@ -92,7 +92,7 @@ void XmppComponent::on_connected() { log_info("connected to XMPP server"); this->first_connection_try = true; - auto data = "<stream:stream to='"s + this->served_hostname + \ + auto data = "<stream:stream to='" + this->served_hostname + \ "' xmlns:stream='http://etherx.jabber.org/streams' xmlns='" COMPONENT_NS "'>"; log_debug("XMPP SENDING: ", data); this->send_data(std::move(data)); @@ -142,7 +142,7 @@ void XmppComponent::on_remote_stream_open(const XmlNode& node) } // Try to authenticate - auto data = "<handshake xmlns='" COMPONENT_NS "'>"s + get_handshake_digest(this->stream_id, this->secret) + "</handshake>"; + auto data = "<handshake xmlns='" COMPONENT_NS "'>" + get_handshake_digest(this->stream_id, this->secret) + "</handshake>"; log_debug("XMPP SENDING: ", data); this->send_data(std::move(data)); } @@ -642,7 +642,7 @@ void XmppComponent::send_iq_version_request(const std::string& from, Stanza iq("iq"); { iq["type"] = "get"; - iq["id"] = "version_"s + XmppComponent::next_id(); + iq["id"] = "version_" + XmppComponent::next_id(); iq["from"] = from + "@" + this->served_hostname; iq["to"] = jid_to; XmlSubNode query(iq, "query"); |