Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14864808
D10429.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
701 B
Subscribers
None
D10429.diff
View Options
diff --git a/src/util/system.cpp b/src/util/system.cpp
--- a/src/util/system.cpp
+++ b/src/util/system.cpp
@@ -587,7 +587,7 @@
}
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);
@@ -1015,7 +1015,7 @@
ClearDatadirCache();
if (!CheckDataDirOption()) {
error = strprintf("specified data directory \"%s\" does not exist.",
- gArgs.GetArg("-datadir", "").c_str());
+ GetArg("-datadir", "").c_str());
return false;
}
return true;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 20, 22:32 (21 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5866065
Default Alt Text
D10429.diff (701 B)
Attached To
D10429: util: Do not use gArgs global in ArgsManager member functions
Event Timeline
Log In to Comment