From fa02e76e325bfec6ca2737fcb086cab4e3de3cba Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 16 May 2013 15:10:44 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@4681 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 4 ++-- protocols/FacebookRM/src/messages.cpp | 4 ++-- protocols/FacebookRM/src/proto.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/FacebookRM') diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index e86519a85f..f10302491f 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -618,7 +618,7 @@ bool facebook_client::login(const std::string &username,const std::string &passw data += "&email=" + utils::url::encode(username); data += "&pass=" + utils::url::encode(password); - mir_ptr locale = db_get_sa(NULL, parent->m_szModuleName, FACEBOOK_KEY_LOCALE); + MCBuf locale( db_get_sa(NULL, parent->m_szModuleName, FACEBOOK_KEY_LOCALE)); if (locale != NULL) data += "&locale=" + std::string(locale); @@ -723,7 +723,7 @@ bool facebook_client::login(const std::string &username,const std::string &passw TCHAR buf[200]; mir_sntprintf(buf, SIZEOF(buf), TranslateT("Login error: %s"), - (!error_str.length()) ? TranslateT("Unknown error") : mir_ptr(mir_utf8decodeT(error_str.c_str()))); + (!error_str.length()) ? TranslateT("Unknown error") : MTBuf(mir_utf8decodeT(error_str.c_str()))); client_notify(buf); } case HTTP_CODE_FORBIDDEN: // Forbidden diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 29fbbcdcca..14c6c3313d 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -174,7 +174,7 @@ void FacebookProto::ReadMessageWorker(void *p) if (!db_get_b(NULL, m_szModuleName, FACEBOOK_KEY_MARK_READ, 0)) { // old variant - no seen info updated - mir_ptr id = db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_ID); + MCBuf id( db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_ID)); if (id == NULL) return; std::string data = "action=chatMarkRead"; @@ -185,7 +185,7 @@ void FacebookProto::ReadMessageWorker(void *p) http::response resp = facy.flap(FACEBOOK_REQUEST_ASYNC, &data); } else { // new variant - with seen info - mir_ptr mid = db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_MESSAGE_ID); + MCBuf mid( db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_MESSAGE_ID)); if (mid == NULL) return; std::string data = "ids[" + std::string(mid) + "]=true"; diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 757ef80093..c20752f50b 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -498,7 +498,7 @@ int FacebookProto::Poke(WPARAM wParam,LPARAM lParam) HANDLE hContact = reinterpret_cast(wParam); - mir_ptr id = db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_ID); + MCBuf id( db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_ID)); if (id == NULL) return 1; -- cgit v1.2.3