From 206f15f700b31dc45c2ad6b7c1ec21142d6a38a5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Mar 2017 13:30:53 +0300 Subject: warning fix --- protocols/FacebookRM/src/http_request.h | 2 +- protocols/FacebookRM/src/requests/history.h | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'protocols/FacebookRM/src') 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(); -- cgit v1.2.3