diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-08-28 20:30:29 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-08-28 20:30:29 +0000 |
commit | 86ffbe56a77e202ee195bc48a8d61b454e256b84 (patch) | |
tree | 28cbb2e1bf93a80a00ad27ab1928c86ae792be73 /plugins/TabSRMM/src/trayicon.cpp | |
parent | 515b07f0d98c647c5151867d75a6c8a05d329bfa (diff) |
TabSEMM:
- minor leak fixed
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@15073 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/trayicon.cpp')
-rw-r--r-- | plugins/TabSRMM/src/trayicon.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/trayicon.cpp b/plugins/TabSRMM/src/trayicon.cpp index 9db2c36379..59109ece07 100644 --- a/plugins/TabSRMM/src/trayicon.cpp +++ b/plugins/TabSRMM/src/trayicon.cpp @@ -126,10 +126,10 @@ void TSAPI CreateTrayMenus(int mode) }
}
}
+
/*
* create a system tray icon, create all necessary submenus
*/
-
void TSAPI CreateSystrayIcon(int create)
{
NOTIFYICONDATA nim;
@@ -158,7 +158,6 @@ void TSAPI CreateSystrayIcon(int create) * mode = 0 - continue to flash
* mode = 1 - restore the original icon
*/
-
void TSAPI FlashTrayIcon(HICON hIcon)
{
NOTIFYICONDATA nim;
@@ -188,7 +187,6 @@ void TSAPI FlashTrayIcon(HICON hIcon) * maximum number of allowed entries (20 at the moment). The oldest (topmost) entry
* is deleted, if necessary.
*/
-
void TSAPI AddContactToFavorites(MCONTACT hContact, const TCHAR *szNickname, const char *szProto, TCHAR *szStatus, WORD wStatus, HICON hIcon, BOOL mode, HMENU hMenu)
{
TCHAR szMenuEntry[80];
@@ -203,7 +201,7 @@ void TSAPI AddContactToFavorites(MCONTACT hContact, const TCHAR *szNickname, con szProto = GetContactProto(hContact);
if (szProto) {
if (wStatus == 0)
- wStatus = db_get_w((MCONTACT)hContact, szProto, "Status", ID_STATUS_OFFLINE);
+ wStatus = db_get_w(hContact, szProto, "Status", ID_STATUS_OFFLINE);
if (szStatus == NULL)
szStatus = pcli->pfnGetStatusModeDescription(wStatus, 0);
}
@@ -277,7 +275,6 @@ void TSAPI AddContactToFavorites(MCONTACT hContact, const TCHAR *szNickname, con * at runtime.
* scans the contact db for favorites or recent session entries and builds the menus.
*/
-
typedef struct _recentEntry {
DWORD dwTimestamp;
MCONTACT hContact;
|