diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-09-27 11:49:36 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-09-27 11:49:36 +0000 |
commit | 93803b014deca7d3cd450b4536cb0baa310f612b (patch) | |
tree | 4a896182495f8c3602eee98880fab83ffaaa1b6d /protocols/FacebookRM/src/contacts.cpp | |
parent | c8eca678b7dbde203e2f778cabd590c846391411 (diff) |
Facebook: new getStringUtf and setStringUtf helpers
git-svn-id: http://svn.miranda-ng.org/main/trunk@6249 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index 5449847d08..28b2b25d79 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -32,14 +32,14 @@ void FacebookProto::SaveName(HANDLE hContact, const facebook_user *fbu) return;
}
- db_set_utf(hContact, m_szModuleName, FACEBOOK_KEY_NICK, fbu->real_name.c_str());
+ setStringUtf(hContact, FACEBOOK_KEY_NICK, fbu->real_name.c_str());
// Explode whole name into first, second and last name
std::vector<std::string> names;
utils::text::explode(fbu->real_name, " ", &names);
- db_set_utf(hContact, m_szModuleName, FACEBOOK_KEY_FIRST_NAME, names.front().c_str());
- db_set_utf(hContact, m_szModuleName, FACEBOOK_KEY_LAST_NAME, names.back().c_str());
+ setStringUtf(hContact, FACEBOOK_KEY_FIRST_NAME, names.front().c_str());
+ setStringUtf(hContact, FACEBOOK_KEY_LAST_NAME, names.back().c_str());
if (names.size() > 2) {
std::string middle = "";
@@ -49,7 +49,7 @@ void FacebookProto::SaveName(HANDLE hContact, const facebook_user *fbu) middle += names.at(i);
}
- db_set_utf(hContact, m_szModuleName, FACEBOOK_KEY_SECOND_NAME, middle.c_str());
+ setStringUtf(hContact, FACEBOOK_KEY_SECOND_NAME, middle.c_str());
} else {
delSetting(hContact, FACEBOOK_KEY_SECOND_NAME);
}
|