diff options
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index dfc9225151..2b5dfa8403 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -181,11 +181,11 @@ void FacebookProto::ProcessFriendList(void*) continue; facebook_user *fbu; - ptrA id(getStringA(hContact, FACEBOOK_KEY_ID)); - if (id != NULL) { + std::string id = ptrA(getStringA(hContact, FACEBOOK_KEY_ID)); + if (!id.empty()) { std::map< std::string, facebook_user* >::iterator iter; - if ((iter = friends.find(std::string(id))) != friends.end()) { + if ((iter = friends.find(id)) != friends.end()) { // Found contact, update it and remove from map fbu = iter->second; |