Make variable name more explicit
parent
8afa4c6ea8
commit
06a2c6f377
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue