reapack

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

commit b8d159e1ef6a9d70c7deefb58ac6e96d9129faca
parent 399bf0fdf16524b67e189dc2a3b2fa92199a5f41
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sat, 30 Apr 2016 09:35:24 -0400

micro refactoring (remove useless std:: prefixes)

Diffstat:
Msrc/about.cpp | 2+-
Msrc/browser.cpp | 6+++---
Msrc/path.cpp | 4++--
Msrc/transaction.cpp | 4++--
4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/about.cpp b/src/about.cpp @@ -240,7 +240,7 @@ void About::updateInstalledFiles() } } -void About::selectLink(const int ctrl, const std::vector<const Link *> &links) +void About::selectLink(const int ctrl, const vector<const Link *> &links) { const int count = (int)links.size(); diff --git a/src/browser.cpp b/src/browser.cpp @@ -414,7 +414,7 @@ void Browser::refresh(const bool stale) show(); #ifdef LVSCW_AUTOSIZE_USEHEADER - m_list->resizeColumn(m_list->columnCount() - 1, LVSCW_AUTOSIZE_USEHEADER); + m_list->resizeColumn(m_list->columnCount() - 1, LVSCW_AUTOSIZE_USEHEADER); #endif } }, handle(), stale); @@ -425,7 +425,7 @@ void Browser::populate() try { Registry reg(Path::prefixRoot(Path::REGISTRY)); - std::vector<Entry> oldEntries; // keep old entries in memory a bit longer + vector<Entry> oldEntries; // keep old entries in memory a bit longer swap(m_entries, oldEntries); m_currentIndex = -1; @@ -773,7 +773,7 @@ void Browser::setAction(const int index, const Version *target, const bool toggl } } -void Browser::selectionDo(const std::function<void (int)> &func) +void Browser::selectionDo(const function<void (int)> &func) { InhibitControl freeze(m_list); diff --git a/src/path.cpp b/src/path.cpp @@ -63,7 +63,7 @@ static vector<string> Split(const string &input) return list; } -Path::Path(const std::string &path) +Path::Path(const string &path) { append(path); } @@ -243,7 +243,7 @@ const string &Path::operator[](const size_t index) const return at(index); } -UseRootPath::UseRootPath(const std::string &path) +UseRootPath::UseRootPath(const string &path) : m_backup(move(Path::s_root)) { Path::s_root = path; diff --git a/src/transaction.cpp b/src/transaction.cpp @@ -114,7 +114,7 @@ void Transaction::synchronize(const Package *pkg, const InstallOpts &opts) void Transaction::fetchIndex(const Remote &remote, const IndexCallback &cb) { // add the callback to the list, and start the download if it's the first one - const std::string &name = remote.name(); + const string &name = remote.name(); m_remotes.insert({name, cb}); if(m_remotes.count(name) > 1) @@ -388,7 +388,7 @@ void Transaction::registerScript(const HostTicket &reg) else section = MainSection; - const std::string &fullPath = Path::prefixRoot(reg.file).join(); + const string &fullPath = Path::prefixRoot(reg.file).join(); const bool isLast = m_regQueue.size() == 1; if(!AddRemoveReaScript(reg.add, section, fullPath.c_str(), isLast) && reg.add)