reapack

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

commit 2af98f13da103d07af9ed8d58ed7f7e671f77f89
parent 22c52fc5a81d4098d7d6078bf859f466bbcc134e
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Wed,  8 Jun 2016 16:12:27 -0400

some refactoring: move method implementation around

Diffstat:
Msrc/config.cpp | 26+++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/config.cpp b/src/config.cpp @@ -61,6 +61,19 @@ void Config::resetOptions() m_browser = {0}; } +void Config::restoreSelfRemote() +{ + const string name = "ReaPack"; + const string url = "https://github.com/cfillion/reapack/raw/master/index.xml"; + + Remote remote = m_remotes.get(name); + remote.setName(name); + remote.setUrl(url); + remote.protect(); + + m_remotes.add(remote); +} + void Config::restoreDefaultRemotes() { const vector<pair<string,string> > repos = { @@ -135,19 +148,6 @@ void Config::write() writeRemotes(); } -void Config::restoreSelfRemote() -{ - const string name = "ReaPack"; - const string url = "https://github.com/cfillion/reapack/raw/master/index.xml"; - - Remote remote = m_remotes.get(name); - remote.setName(name); - remote.setUrl(url); - remote.protect(); - - m_remotes.add(remote); -} - void Config::readRemotes() { m_remotesIniSize = getUInt(REMOTES_GRP, SIZE_KEY);