diff options
Diffstat (limited to 'remoting/protocol/jingle_messages.cc')
-rw-r--r-- | remoting/protocol/jingle_messages.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/remoting/protocol/jingle_messages.cc b/remoting/protocol/jingle_messages.cc index e2408e0..7d82443 100644 --- a/remoting/protocol/jingle_messages.cc +++ b/remoting/protocol/jingle_messages.cc @@ -124,9 +124,10 @@ JingleMessage::NamedCandidate::NamedCandidate( // static bool JingleMessage::IsJingleMessage(const buzz::XmlElement* stanza) { - return stanza->Name() == QName(kJabberNamespace, "iq") && - stanza->Attr(QName(std::string(), "type")) == "set" && - stanza->FirstNamed(QName(kJingleNamespace, "jingle")) != NULL; + return + stanza->Name() == QName(kJabberNamespace, "iq") && + stanza->Attr(QName("", "type")) == "set" && + stanza->FirstNamed(QName(kJingleNamespace, "jingle")) != NULL; } // static @@ -372,7 +373,7 @@ scoped_ptr<buzz::XmlElement> JingleMessageReply::ToXml( std::string type; std::string error_text; - QName name; + QName name(""); switch (error_type) { case BAD_REQUEST: type = "modify"; |