diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-27 15:34:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-27 15:34:33 +0000 |
commit | b48741c8d0ed916d2cdd41956667ec4082ab245a (patch) | |
tree | 1d0e149514343e602495e85861649e173324fd01 /plugins/TabSRMM/src/trayicon.cpp | |
parent | b1d29a5793fc80dd1c0d26e4ba900853fad41809 (diff) |
obsolete helpers removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/trayicon.cpp')
-rw-r--r-- | plugins/TabSRMM/src/trayicon.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/trayicon.cpp b/plugins/TabSRMM/src/trayicon.cpp index 5739275cbb..d3b8006543 100644 --- a/plugins/TabSRMM/src/trayicon.cpp +++ b/plugins/TabSRMM/src/trayicon.cpp @@ -274,11 +274,11 @@ void TSAPI AddContactToFavorites(HANDLE hContact, const TCHAR *szNickname, const UINT uid = GetMenuItemID(hMenu, 0);
if (uid) {
DeleteMenu(hMenu, (UINT_PTR)0, MF_BYPOSITION);
- M->WriteDword((HANDLE)uid, SRMSGMOD_T, "isRecent", 0);
+ db_set_dw((HANDLE)uid, SRMSGMOD_T, "isRecent", 0);
}
}
addnew:
- M->WriteDword(hContact, SRMSGMOD_T, "isRecent", time(NULL));
+ db_set_dw(hContact, SRMSGMOD_T, "isRecent", time(NULL));
AppendMenu(hMenu, MF_BYCOMMAND, (UINT_PTR)hContact, szMenuEntry);
}
else if (hMenu == PluginConfig.g_hMenuFavorites) { // insert the item sorted...
@@ -338,9 +338,9 @@ void TSAPI LoadFavoritesAndRecent() return;
for (HANDLE hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) {
- if (M->GetByte(hContact, SRMSGMOD_T, "isFavorite", 0))
+ if (M.GetByte(hContact, "isFavorite", 0))
AddContactToFavorites(hContact, NULL, NULL, NULL, 0, 0, 1, PluginConfig.g_hMenuFavorites);
- if ((dwRecent = M->GetDword(hContact, "isRecent", 0)) != 0 && iIndex < nen_options.wMaxRecent) {
+ if ((dwRecent = M.GetDword(hContact, "isRecent", 0)) != 0 && iIndex < nen_options.wMaxRecent) {
recentEntries[iIndex].dwTimestamp = dwRecent;
recentEntries[iIndex++].hContact = hContact;
}
|