aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test/test_main.cpp
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2019-08-09 15:39:30 -0400
committerAndrew Chow <[email protected]>2019-08-09 15:47:37 -0400
commita2714a5c69f0b0506689af04c3e785f71ee0915d (patch)
treed0c6e99bacabc9078040fd2f8c9b467027616064 /src/qt/test/test_main.cpp
parentMerge #16573: build: disable building libsecp256k1 benchmarks (diff)
downloaddiscoin-a2714a5c69f0b0506689af04c3e785f71ee0915d.tar.xz
discoin-a2714a5c69f0b0506689af04c3e785f71ee0915d.zip
Give QApplication dummy arguments
QApplication takes the command line arguments and parses them itself for some built in command line arguments that it has. We don't want any of those built in arguments, so instead give it dummy arguments.
Diffstat (limited to 'src/qt/test/test_main.cpp')
-rw-r--r--src/qt/test/test_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp
index dd5216d68..796cf24b3 100644
--- a/src/qt/test/test_main.cpp
+++ b/src/qt/test/test_main.cpp
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
// Don't remove this, it's needed to access
// QApplication:: and QCoreApplication:: in the tests
- BitcoinApplication app(*node, argc, argv);
+ BitcoinApplication app(*node);
app.setApplicationName("Bitcoin-Qt-test");
AppTests app_tests(app);