reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit b1619ae3bd59f7fcb9921433a53bf11a54abfd6f
parent eb7ad0ace9be1c7cceb0b7f09e56ff2a68575d6d
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Mon,  6 Feb 2017 19:50:52 -0500

listview: slight code style improvement

Diffstat:
Msrc/listview.cpp | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/listview.cpp b/src/listview.cpp @@ -256,9 +256,8 @@ vector<int> ListView::selection(const bool sort) const int index = -1; vector<int> indexes; - while((index = ListView_GetNextItem(handle(), index, LVNI_SELECTED)) != -1) { + while((index = ListView_GetNextItem(handle(), index, LVNI_SELECTED)) != -1) indexes.push_back(translateBack(index)); - } if(sort) std::sort(indexes.begin(), indexes.end());