diff options
| author | Marko Bencun <[email protected]> | 2017-06-15 22:45:55 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-08-14 17:02:36 +0200 |
| commit | fcbde9091e7cd644237010f16f27052ac3b0d1ad (patch) | |
| tree | 1a5a6899ff01632822303c4a211f90976a457e82 /src/util.cpp | |
| parent | scripted-diff: stop using the gArgs wrappers (diff) | |
| download | discoin-fcbde9091e7cd644237010f16f27052ac3b0d1ad.tar.xz discoin-fcbde9091e7cd644237010f16f27052ac3b0d1ad.zip | |
remove unused gArgs wrappers
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp index fc75b7ef8..ba563478f 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -564,8 +564,8 @@ const fs::path &GetDataDir(bool fNetSpecific) if (!path.empty()) return path; - if (IsArgSet("-datadir")) { - path = fs::system_complete(GetArg("-datadir", "")); + if (gArgs.IsArgSet("-datadir")) { + path = fs::system_complete(gArgs.GetArg("-datadir", "")); if (!fs::is_directory(path)) { path = ""; return path; @@ -627,7 +627,7 @@ void ArgsManager::ReadConfigFile(const std::string& confPath) #ifndef WIN32 fs::path GetPidFile() { - fs::path pathPidFile(GetArg("-pid", BITCOIN_PID_FILENAME)); + fs::path pathPidFile(gArgs.GetArg("-pid", BITCOIN_PID_FILENAME)); if (!pathPidFile.is_complete()) pathPidFile = GetDataDir() / pathPidFile; return pathPidFile; } |