From 15fa9a8a6dbce8619118c9f0cea877fbf903700a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Sep 2013 22:50:50 +0000 Subject: explicit constructors for ptrT git-svn-id: http://svn.miranda-ng.org/main/trunk@6174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/contacts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/FacebookRM/src/contacts.cpp') diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index cdb71054ac..dddc83e4ff 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -86,7 +86,7 @@ HANDLE FacebookProto::AddToContactList(facebook_user* fbu, ContactType type, boo db_unset(hContact, "CList", "MyHandle"); - ptrT group = getTStringA(NULL, FACEBOOK_KEY_DEF_GROUP); + ptrT group( getTStringA(NULL, FACEBOOK_KEY_DEF_GROUP)); if (group) db_set_ts(hContact, "CList", "Group", group); @@ -122,7 +122,7 @@ void FacebookProto::SetAllContactStatuses(int status, bool reset_client) continue; if (reset_client) { - ptrT mirver = getTStringA(hContact, "MirVer"); + ptrT mirver( getTStringA(hContact, "MirVer")); if (!mirver || _tcscmp(mirver, _T(FACEBOOK_NAME))) setTString(hContact, "MirVer", _T(FACEBOOK_NAME)); @@ -317,7 +317,7 @@ void FacebookProto::SendPokeWorker(void *p) utils::text::slashu_to_utf8( utils::text::source_get_value(&resp.data, 3, "\"body\":", "__html\":\"", "\"}")))); - ptrT tmessage = mir_utf8decodeT(message.c_str()); + ptrT tmessage( mir_utf8decodeT(message.c_str())); NotifyEvent(m_tszUserName, tmessage, NULL, FACEBOOK_EVENT_OTHER); } -- cgit v1.2.3