Index: remoting/protocol/jingle_messages.cc |
diff --git a/remoting/protocol/jingle_messages.cc b/remoting/protocol/jingle_messages.cc |
index 7d8244375525d72f3ae746f7ba94d930743a8f6e..e2408e023a602efb326520afa7a374d54a0c2768 100644 |
--- a/remoting/protocol/jingle_messages.cc |
+++ b/remoting/protocol/jingle_messages.cc |
@@ -124,10 +124,9 @@ JingleMessage::NamedCandidate::NamedCandidate( |
// static |
bool JingleMessage::IsJingleMessage(const buzz::XmlElement* stanza) { |
- return |
- stanza->Name() == QName(kJabberNamespace, "iq") && |
- stanza->Attr(QName("", "type")) == "set" && |
- stanza->FirstNamed(QName(kJingleNamespace, "jingle")) != NULL; |
+ return stanza->Name() == QName(kJabberNamespace, "iq") && |
+ stanza->Attr(QName(std::string(), "type")) == "set" && |
+ stanza->FirstNamed(QName(kJingleNamespace, "jingle")) != NULL; |
} |
// static |
@@ -373,7 +372,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"; |