diff options
Diffstat (limited to 'plugins/YAPP/src/yapp_history.cpp')
-rw-r--r-- | plugins/YAPP/src/yapp_history.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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 } |