diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-21 13:30:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-21 13:30:53 +0300 |
commit | 206f15f700b31dc45c2ad6b7c1ec21142d6a38a5 (patch) | |
tree | 035f7a89aeeb3cf07c9d45e495a5ec9fbf3b1d41 /protocols/FacebookRM | |
parent | b6330f119c9f253d470dac46b20335811a8e0676 (diff) |
warning fix
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/http_request.h | 2 | ||||
-rw-r--r-- | protocols/FacebookRM/src/requests/history.h | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/protocols/FacebookRM/src/http_request.h b/protocols/FacebookRM/src/http_request.h index 9e3a578f56..3b8b679bd4 100644 --- a/protocols/FacebookRM/src/http_request.h +++ b/protocols/FacebookRM/src/http_request.h @@ -209,7 +209,7 @@ protected: HttpRequestBody & operator<<(const FORMAT_VALUE ¶m) { AppendSeparator(); - content.AppendFormat("%s=%s", param.szName, param.szValue); + content.AppendFormat("%s=%s", param.szName, param.szValue.c_str()); return *this; } diff --git a/protocols/FacebookRM/src/requests/history.h b/protocols/FacebookRM/src/requests/history.h index faa146934e..2d8d58b1ea 100644 --- a/protocols/FacebookRM/src/requests/history.h +++ b/protocols/FacebookRM/src/requests/history.h @@ -52,9 +52,9 @@ public: CMStringA begin(::FORMAT, "messages[%s][%s]", type, idEncoded); Body - << CMStringA(::FORMAT, "%s[offset]=%i", begin, offset).c_str() - << CMStringA(::FORMAT, "%s[timestamp]=%s", begin, timestamp).c_str() - << CMStringA(::FORMAT, "%s[limit]=%i", begin, limit).c_str(); + << CMStringA(::FORMAT, "%s[offset]=%i", begin.c_str(), offset).c_str() + << CMStringA(::FORMAT, "%s[timestamp]=%s", begin.c_str(), timestamp).c_str() + << CMStringA(::FORMAT, "%s[limit]=%i", begin.c_str(), limit).c_str(); //} /*if (loadThreadInfo) { @@ -106,9 +106,9 @@ public: CMStringA begin(::FORMAT, "messages[%s][%s]", type, idEncoded); Body - << CMStringA(::FORMAT, "%s[offset]=%i", begin, 0).c_str() - << CMStringA(::FORMAT, "%s[timestamp]=%s", begin, "").c_str() - << CMStringA(::FORMAT, "%s[limit]=%i", begin, limit).c_str(); + << CMStringA(::FORMAT, "%s[offset]=%i", begin.c_str(), 0).c_str() + << CMStringA(::FORMAT, "%s[timestamp]=%s", begin.c_str(), "").c_str() + << CMStringA(::FORMAT, "%s[limit]=%i", begin.c_str(), limit).c_str(); // Load thread info Body << CMStringA(::FORMAT, "threads[%s][0]=%s", type, idEncoded).c_str(); @@ -133,9 +133,9 @@ public: // Load messages CMStringA begin(::FORMAT, "messages[%s][%s]", "thread_fbids", idEncoded); Body - << CMStringA(::FORMAT, "%s[offset]=%i", begin, offset).c_str() - //<< CMStringA(::FORMAT, "%s[timestamp]=%s", begin, "").c_str() - << CMStringA(::FORMAT, "%s[limit]=%i", begin, limit).c_str(); + << CMStringA(::FORMAT, "%s[offset]=%i", begin.c_str(), offset).c_str() + //<< CMStringA(::FORMAT, "%s[timestamp]=%s", begin.c_str(), "").c_str() + << CMStringA(::FORMAT, "%s[limit]=%i", begin.c_str(), limit).c_str(); // Load thread info Body << CMStringA(::FORMAT, "threads[%s][%i]=%s", "thread_fbids", i, idEncoded).c_str(); |