aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-11-29 15:17:34 -0800
committerMatt Corallo <git@bluematt.me>2016-12-23 21:30:15 -0500
commitc8042a48f01aaf306e108683e40db4bfaf0bbcaa (patch)
tree8baf9690b4ab0628b7f3795d24dbab85dcac0374 /src/util.cpp
parent0f921e6a0492c4e9f037a9ed91f474885032d68c (diff)
downloadbitcoin-c8042a48f01aaf306e108683e40db4bfaf0bbcaa.tar.xz
Remove arguments to ParseConfigFile
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 977f8993ed..8b3e5f93f0 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -526,9 +526,7 @@ boost::filesystem::path GetConfigFile(const std::string& confPath)
return pathConfigFile;
}
-void ReadConfigFile(const std::string& confPath,
- map<string, string>& mapSettingsRet,
- map<string, vector<string> >& mapMultiSettingsRet)
+void ReadConfigFile(const std::string& confPath)
{
boost::filesystem::ifstream streamConfig(GetConfigFile(confPath));
if (!streamConfig.good())
@@ -543,9 +541,9 @@ void ReadConfigFile(const std::string& confPath,
string strKey = string("-") + it->string_key;
string strValue = it->value[0];
InterpretNegativeSetting(strKey, strValue);
- if (mapSettingsRet.count(strKey) == 0)
- mapSettingsRet[strKey] = strValue;
- mapMultiSettingsRet[strKey].push_back(strValue);
+ if (mapArgs.count(strKey) == 0)
+ mapArgs[strKey] = strValue;
+ mapMultiArgs[strKey].push_back(strValue);
}
// If datadir is changed in .conf file:
ClearDatadirCache();