diff options
| author | Hennadii Stepanov <[email protected]> | 2020-10-06 14:36:50 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-10-06 14:57:06 +0300 |
| commit | d103484fe81a8a5bf1d692f3f7d1c0ef1be5f63c (patch) | |
| tree | f00fc5050fb9a9930f4ea0cd37526a03639a5907 /src/util/system.cpp | |
| parent | Merge #19947: Test: Cover "change_type" option of "walletcreatefundedpsbt" RPC (diff) | |
| download | discoin-d103484fe81a8a5bf1d692f3f7d1c0ef1be5f63c.tar.xz discoin-d103484fe81a8a5bf1d692f3f7d1c0ef1be5f63c.zip | |
util: Do not use gArgs global in ArgsManager member functions
Diffstat (limited to 'src/util/system.cpp')
| -rw-r--r-- | src/util/system.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp index 41715aac1..a411b73a1 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -523,7 +523,7 @@ void ArgsManager::AddHiddenArgs(const std::vector<std::string>& names) std::string ArgsManager::GetHelpMessage() const { - const bool show_debug = gArgs.GetBoolArg("-help-debug", false); + const bool show_debug = GetBoolArg("-help-debug", false); std::string usage = ""; LOCK(cs_args); @@ -900,7 +900,7 @@ bool ArgsManager::ReadConfigFiles(std::string& error, bool ignore_invalid_keys) // If datadir is changed in .conf file: ClearDatadirCache(); if (!CheckDataDirOption()) { - error = strprintf("specified data directory \"%s\" does not exist.", gArgs.GetArg("-datadir", "")); + error = strprintf("specified data directory \"%s\" does not exist.", GetArg("-datadir", "")); return false; } return true; |