Make variable name more explicit

pull/14101/head
Don Ho 1 year ago
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{}; LVITEM item{};
item.mask = LVIF_PARAM; item.mask = LVIF_PARAM;
@ -361,7 +361,7 @@ void VerticalFileSwitcherListView::remove(int index, bool del)
TaskLstFnStatus *tlfs = (TaskLstFnStatus *)item.lParam; TaskLstFnStatus *tlfs = (TaskLstFnStatus *)item.lParam;
delete tlfs; delete tlfs;
if (del) if (removeFromListview)
ListView_DeleteItem(_hSelf, index); ListView_DeleteItem(_hSelf, index);
} }

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

Loading…
Cancel
Save