diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-04-21 17:39:45 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-04-21 17:39:45 +0000 |
commit | c13392f8596e858110dc4c61fbdf1d41e47cc8a9 (patch) | |
tree | 7eb5a3790ce4069393addff302d24306a496a04e /plugins/YAPP/src | |
parent | d1851afba0e105ab2b0c7e8ad5e72a4dfbc5dd71 (diff) |
- Added lParam to POPUPCLASS
- Removed MS_POPUP_ISSECONDLINESHOWN
- Support for mutating popups in Facebook
git-svn-id: http://svn.miranda-ng.org/main/trunk@9021 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAPP/src')
-rw-r--r-- | plugins/YAPP/src/services.cpp | 6 | ||||
-rw-r--r-- | plugins/YAPP/src/yapp_history.cpp | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/plugins/YAPP/src/services.cpp b/plugins/YAPP/src/services.cpp index d612714f10..b193a3d952 100644 --- a/plugins/YAPP/src/services.cpp +++ b/plugins/YAPP/src/services.cpp @@ -191,11 +191,6 @@ static INT_PTR GetOpaque(WPARAM wParam, LPARAM lParam) return (INT_PTR)data;
}
-static INT_PTR IsSecondLineShown(WPARAM wParam, LPARAM lParam)
-{
- return TRUE;
-}
-
void UpdateMenu()
{
bool isEnabled = db_get_b(0, MODULE, "Enabled", 1) == 1;
@@ -432,7 +427,6 @@ void InitServices() CreateServiceFunction(MS_POPUP_CHANGEW, PopupChangeW);
CreateServiceFunction(MS_POPUP_GETCONTACT, GetContact);
CreateServiceFunction(MS_POPUP_GETPLUGINDATA, GetOpaque);
- CreateServiceFunction(MS_POPUP_ISSECONDLINESHOWN, IsSecondLineShown);
CreateServiceFunction(MS_POPUP_QUERY, PopupQuery);
CreateServiceFunction(MS_POPUP_SHOWMESSAGE, ShowMessage);
diff --git a/plugins/YAPP/src/yapp_history.cpp b/plugins/YAPP/src/yapp_history.cpp index a7cfd70fc6..0b1d534cb0 100644 --- a/plugins/YAPP/src/yapp_history.cpp +++ b/plugins/YAPP/src/yapp_history.cpp @@ -16,8 +16,7 @@ PopupHistoryList::~PopupHistoryList() void PopupHistoryList::Clear() { - int i; - for (i = 0; i < count; i++) + for (int i = 0; i < count; i++) { DeleteData(i); } @@ -26,9 +25,8 @@ void PopupHistoryList::Clear() void PopupHistoryList::RemoveItem(int index) { - int i; DeleteData(index); //free the mem for that particular item - for (i = index + 1; i < count; i++) + for (int i = index + 1; i < count; i++) { historyData[i - 1] = historyData[i]; //shift all items to the left } |