mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
Make variable name more explicit
This commit is contained in:
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…
x
Reference in New Issue
Block a user