Browse Source

Make variable name more explicit

pull/14101/head
Don Ho 1 year ago
parent
commit
06a2c6f377
  1. 4
      PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp
  2. 2
      PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h

4
PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp

@ -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);
}

2
PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h

@ -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…
Cancel
Save