diff options
author | Matt Corallo <git@bluematt.me> | 2016-11-29 17:51:30 -0800 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2016-12-23 21:30:16 -0500 |
commit | 0cf86a6678413aa03e765a7133f048df4001ff4c (patch) | |
tree | 10846a31ea17a64d66a77f15acc182aeeea43861 /src/qt/bitcoin.cpp | |
parent | 2b5f085ad11b4b354f48d77e66698fa386c8abbd (diff) |
Introduce (and use) an IsArgSet accessor method
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r-- | src/qt/bitcoin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 3ae54f3119..9d80a38008 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -587,9 +587,9 @@ int main(int argc, char *argv[]) // Show help message immediately after parsing command-line options (for "-lang") and setting locale, // but before showing splash screen. - if (mapArgs.count("-?") || mapArgs.count("-h") || mapArgs.count("-help") || mapArgs.count("-version")) + if (IsArgSet("-?") || IsArgSet("-h") || IsArgSet("-help") || IsArgSet("-version")) { - HelpMessageDialog help(NULL, mapArgs.count("-version")); + HelpMessageDialog help(NULL, IsArgSet("-version")); help.showOrPrint(); return EXIT_SUCCESS; } @@ -672,7 +672,7 @@ int main(int argc, char *argv[]) // Allow parameter interaction before we create the options model app.parameterSetup(); // Load GUI settings from QSettings - app.createOptionsModel(mapArgs.count("-resetguisettings") != 0); + app.createOptionsModel(IsArgSet("-resetguisettings")); // Subscribe to global signals from core uiInterface.InitMessage.connect(InitMessage); |