summaryrefslogtreecommitdiff
path: root/plugins/Popup
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-31 21:02:26 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-31 21:02:26 +0000
commite48bae4c6ccf1003916b3960f30816ce8aaa955b (patch)
treea69a0e638db00a3f2af4581a6440178bb9893971 /plugins/Popup
parent6cb654fab7272163d2330cf41de542e1ccba71c8 (diff)
- additional operator LPARAM() for _A2T & _T2A;
- we don't need StrConvA anymore; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@13952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup')
-rw-r--r--plugins/Popup/src/common.h5
-rw-r--r--plugins/Popup/src/services.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Popup/src/common.h b/plugins/Popup/src/common.h
index 819d9fabe0..df079a3c9d 100644
--- a/plugins/Popup/src/common.h
+++ b/plugins/Popup/src/common.h
@@ -82,13 +82,12 @@ inline INT_PTR DBGetContactSettingStringX(MCONTACT hContact, const char *ModuleN
inline void AddTooltipTranslated(HWND hwndToolTip, HWND hwnd, int id, RECT rc, char *text)
{
-
TOOLINFO ti = { 0 };
ti.cbSize = sizeof(TOOLINFO);
ti.hwnd = hwnd;
ti.uId = id;
- SendMessage(hwndToolTip, TTM_DELTOOL, 0, (LPARAM)(LPTOOLINFO)&ti);
+ SendMessage(hwndToolTip, TTM_DELTOOL, 0, (LPARAM)&ti);
LPTSTR wtext = mir_a2t(text);
@@ -98,7 +97,7 @@ inline void AddTooltipTranslated(HWND hwndToolTip, HWND hwnd, int id, RECT rc, c
ti.hinst = hInst;
ti.lpszText = TranslateTS(wtext);
ti.rect = rc;
- SendMessage(hwndToolTip, TTM_ADDTOOL, 0, (LPARAM)(LPTOOLINFO)&ti);
+ SendMessage(hwndToolTip, TTM_ADDTOOL, 0, (LPARAM)&ti);
mir_free(wtext);
diff --git a/plugins/Popup/src/services.cpp b/plugins/Popup/src/services.cpp
index c89388e586..1d54e21027 100644
--- a/plugins/Popup/src/services.cpp
+++ b/plugins/Popup/src/services.cpp
@@ -263,7 +263,7 @@ INT_PTR Popup_ShowMessageW(WPARAM wParam, LPARAM lParam)
default: // No no no... you must give me a good value.
return -1;
}
- return Popup_AddPopup2((WPARAM)&ppd2, (LPARAM)((lParam & 0x80000000) ? APF_NO_HISTORY : 0));
+ return Popup_AddPopup2((WPARAM)&ppd2, (lParam & 0x80000000) ? APF_NO_HISTORY : 0);
}
INT_PTR Popup_ShowMessage(WPARAM wParam, LPARAM lParam)