Make variable name more explicit

pull/14101/head
Don Ho 2023-09-05 16:50:15 +02:00
parent 8afa4c6ea8
commit 06a2c6f377
2 changed files with 3 additions and 3 deletions

View File

@ -352,7 +352,7 @@ int VerticalFileSwitcherListView::add(BufferID bufferID, int iView)
}
void VerticalFileSwitcherListView::remove(int index, bool del)
void VerticalFileSwitcherListView::remove(int index, bool removeFromListview)
{
LVITEM item{};
item.mask = LVIF_PARAM;
@ -361,7 +361,7 @@ void VerticalFileSwitcherListView::remove(int index, bool del)
TaskLstFnStatus *tlfs = (TaskLstFnStatus *)item.lParam;
delete tlfs;
if (del)
if (removeFromListview)
ListView_DeleteItem(_hSelf, index);
}

View File

@ -88,7 +88,7 @@ protected:
int find(BufferID bufferID, int iView) const;
int add(BufferID bufferID, int iView);
void remove(int index, bool del = true);
void remove(int index, bool removeFromListview = true);
void removeAll();
void selectCurrentItem() const {
ListView_SetItemState(_hSelf, _currentIndex, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);