From 06a2c6f377015decbe2bdaaf76956cf8dc6d3396 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 5 Sep 2023 16:50:15 +0200 Subject: [PATCH] Make variable name more explicit --- .../VerticalFileSwitcher/VerticalFileSwitcherListView.cpp | 4 ++-- .../VerticalFileSwitcher/VerticalFileSwitcherListView.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp index 8489662e9..2fb46e897 100644 --- a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.cpp +++ b/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); } diff --git a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h b/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h index 2c65e53a4..1be20b61d 100644 --- a/PowerEditor/src/WinControls/VerticalFileSwitcher/VerticalFileSwitcherListView.h +++ b/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);