reapack

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

commit 3b086156f8bd685b5f650813cb1d30970ac4ab58
parent 5e1430bb8c675fb1358e8a3dd9d92e1fee9dad49
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Mon, 17 Jul 2017 22:06:59 -0400

refactoring – remove placeholders namespace prefix

Diffstat:
Msrc/browser.cpp | 11+++++------
Msrc/manager.cpp | 3+--
Msrc/progress.cpp | 2+-
3 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/src/browser.cpp b/src/browser.cpp @@ -90,8 +90,7 @@ void Browser::onInit() m_list->onActivate([=] { aboutPackage(m_list->itemUnderMouse()); }); m_list->onSelect(bind(&Browser::onSelection, this)); - m_list->onContextMenu(bind(&Browser::fillContextMenu, - this, placeholders::_1, placeholders::_2)); + m_list->onContextMenu(bind(&Browser::fillContextMenu, this, _1, _2)); m_list->setSortCallback(3, bind(&Browser::sortByVersion, this, _1, _2)); m_list->setSortCallback(7, bind(&Browser::sortByLastUpdate, this, _1, _2)); @@ -166,13 +165,13 @@ void Browser::onCommand(const int id, const int event) reinstall(m_currentIndex); break; case ACTION_REINSTALL_ALL: - selectionDo(bind(&Browser::reinstall, this, placeholders::_1, false)); + selectionDo(bind(&Browser::reinstall, this, _1, false)); break; case ACTION_UNINSTALL: uninstall(m_currentIndex); break; case ACTION_UNINSTALL_ALL: - selectionDo(bind(&Browser::uninstall, this, placeholders::_1, false)); + selectionDo(bind(&Browser::uninstall, this, _1, false)); break; case ACTION_PIN: togglePin(m_currentIndex); @@ -184,7 +183,7 @@ void Browser::onCommand(const int id, const int event) aboutRemote(m_currentIndex); break; case ACTION_RESET_ALL: - selectionDo(bind(&Browser::resetActions, this, placeholders::_1)); + selectionDo(bind(&Browser::resetActions, this, _1)); break; case ACTION_SHOWDESCS: toggleDescs(); @@ -915,7 +914,7 @@ void Browser::installLatestAll() } } - selectionDo(bind(&Browser::installLatest, this, placeholders::_1, false)); + selectionDo(bind(&Browser::installLatest, this, _1, false)); } void Browser::installLatest(const int index, const bool toggle) diff --git a/src/manager.cpp b/src/manager.cpp @@ -74,8 +74,7 @@ void Manager::onInit() m_list->onActivate(bind(&Manager::aboutRepo, this, true)); m_list->onSelect(bind(&Dialog::startTimer, this, 100, 0, true)); - m_list->onContextMenu(bind(&Manager::fillContextMenu, - this, placeholders::_1, placeholders::_2)); + m_list->onContextMenu(bind(&Manager::fillContextMenu, this, _1, _2)); setAnchor(m_list->handle(), AnchorRight | AnchorBottom); setAnchor(getControl(IDC_IMPORT), AnchorTop | AnchorBottom); diff --git a/src/progress.cpp b/src/progress.cpp @@ -27,7 +27,7 @@ Progress::Progress(ThreadPool *pool) m_pool(pool), m_label(nullptr), m_progress(nullptr), m_done(0), m_total(0) { - m_pool->onPush(bind(&Progress::addTask, this, placeholders::_1)); + m_pool->onPush(bind(&Progress::addTask, this, _1)); } void Progress::onInit()