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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/src/communication.cpp') 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 -- cgit v1.2.3