From c13392f8596e858110dc4c61fbdf1d41e47cc8a9 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 21 Apr 2014 17:39:45 +0000 Subject: - 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 --- plugins/YAPP/src/yapp_history.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/YAPP/src/yapp_history.cpp') 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 } -- cgit v1.2.3