diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-29 18:50:37 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-29 18:50:37 +0000 |
commit | 2afddc4305325447f91d879af7d5c4c280257867 (patch) | |
tree | 768293d3378dc33da532e22d9b99e19ca0323680 /protocols/SkypeWeb/src/requests/capabilities.h | |
parent | 09f41999e99c45c0948d08f474682a85504a48df (diff) |
SkypeWeb: code optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@14754 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/capabilities.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/capabilities.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/protocols/SkypeWeb/src/requests/capabilities.h b/protocols/SkypeWeb/src/requests/capabilities.h index bc965e5a9b..bfdc6a5a60 100644 --- a/protocols/SkypeWeb/src/requests/capabilities.h +++ b/protocols/SkypeWeb/src/requests/capabilities.h @@ -29,24 +29,24 @@ public: << CHAR_VALUE("Content-Type", "application/json; charset=UTF-8")
<< FORMAT_VALUE("RegistrationToken", "registrationToken=%s", regToken);
- JSONNode privateInfo(JSON_NODE);
- privateInfo.set_name("privateInfo");
- privateInfo.push_back(JSONNode("epname", hostname));
-
- JSONNode publicInfo(JSON_NODE);
- publicInfo.set_name("publicInfo");
- publicInfo.push_back(JSONNode("capabilities", "Audio|Video"));
- publicInfo.push_back(JSONNode("typ", 125));
- publicInfo.push_back(JSONNode("skypeNameVersion", "Miranda NG Skype"));
- publicInfo.push_back(JSONNode("nodeInfo", "xx"));
- publicInfo.push_back(JSONNode("version", g_szMirVer));
-
- JSONNode node(JSON_NODE);
- node.push_back(JSONNode("id", "messagingService"));
- node.push_back(JSONNode("type", "EndpointPresenceDoc"));
- node.push_back(JSONNode("selfLink", "uri"));
- node.push_back(privateInfo);
- node.push_back(publicInfo);
+ JSONNode privateInfo; privateInfo.set_name("privateInfo");
+ privateInfo << JSONNode("epname", hostname);
+
+ JSONNode publicInfo; publicInfo.set_name("publicInfo");
+ publicInfo
+ << JSONNode("capabilities", "Audio|Video")
+ << JSONNode("typ", 125)
+ << JSONNode("skypeNameVersion", "Miranda NG Skype")
+ << JSONNode("nodeInfo", "xx")
+ << JSONNode("version", g_szMirVer);
+
+ JSONNode node;
+ node
+ << JSONNode("id", "messagingService")
+ << JSONNode("type", "EndpointPresenceDoc")
+ << JSONNode("selfLink", "uri")
+ << privateInfo
+ << publicInfo;
Body << VALUE(node.write().c_str());
}
|