summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/oauth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Gadu-Gadu/src/oauth.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/oauth.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/Gadu-Gadu/src/oauth.cpp b/protocols/Gadu-Gadu/src/oauth.cpp
index 4142ac5598..805f92bed0 100644
--- a/protocols/Gadu-Gadu/src/oauth.cpp
+++ b/protocols/Gadu-Gadu/src/oauth.cpp
@@ -304,11 +304,11 @@ int GaduProto::oauth_receivetoken()
if (resp->resultCode == 200 && resp->dataLength > 0 && resp->pData) {
TiXmlDocument doc;
if (0 == doc.Parse(resp->pData)) {
- tinyxml2::XMLConstHandle hXml(doc.FirstChildElement("result"));
- if (auto *p = hXml.FirstChildElement("oauth_token").ToElement())
+ TiXmlConst hXml(doc.FirstChildElement("result"));
+ if (auto *p = hXml["oauth_token"].ToElement())
token = mir_strdup(p->GetText());
- if (auto *p = hXml.FirstChildElement("oauth_token_secret").ToElement())
+ if (auto *p = hXml["oauth_token_secret"].ToElement())
token_secret = mir_strdup(p->GetText());
}
}
@@ -373,11 +373,11 @@ int GaduProto::oauth_receivetoken()
if (resp->resultCode == 200 && resp->dataLength > 0 && resp->pData) {
TiXmlDocument doc;
if (0 == doc.Parse(resp->pData)) {
- tinyxml2::XMLConstHandle hXml(doc.FirstChildElement("result"));
- if (auto *p = hXml.FirstChildElement("oauth_token").ToElement())
+ TiXmlConst hXml(doc.FirstChildElement("result"));
+ if (auto *p = hXml["oauth_token"].ToElement())
token = mir_strdup(p->GetText());
- if (auto *p = hXml.FirstChildElement("oauth_token_secret").ToElement())
+ if (auto *p = hXml["oauth_token_secret"].ToElement())
token_secret = mir_strdup(p->GetText());
}
}