summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-11 09:08:03 +0200
committerMontel Laurent <[email protected]>2017-10-11 09:08:03 +0200
commitc8335919dd447b462f50b8248b06380cca41874d (patch)
tree418d489c7a37e7520b299d67de73b3b54370a550
parent686222e9105fdb7bc98fe7996ee966a76f7e96bf (diff)
Don't repeat work of KAboutData::setupCommandLine().
-rw-r--r--src/tests/test_auditlog.cpp2
-rw-r--r--src/tests/test_jobs.cpp2
-rw-r--r--src/tests/test_keygen.cpp2
-rw-r--r--src/tests/test_keylister.cpp2
-rw-r--r--src/tests/test_keyselectioncombo.cpp2
-rw-r--r--src/tests/test_keyselectiondialog.cpp2
6 files changed, 0 insertions, 12 deletions
diff --git a/src/tests/test_auditlog.cpp b/src/tests/test_auditlog.cpp
index 72ec831..a4e90b7 100644
--- a/src/tests/test_auditlog.cpp
+++ b/src/tests/test_auditlog.cpp
@@ -90,8 +90,6 @@ int main(int argc, char **argv)
KAboutData aboutData(QStringLiteral("test_auditlog"), i18n("Auditlog Test"), QStringLiteral("0.1"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
- parser.addVersionOption();
- parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
diff --git a/src/tests/test_jobs.cpp b/src/tests/test_jobs.cpp
index 4d895fd..1aaa994 100644
--- a/src/tests/test_jobs.cpp
+++ b/src/tests/test_jobs.cpp
@@ -98,8 +98,6 @@ int main(int argc, char **argv)
KAboutData aboutData(QStringLiteral("test_jobs"), i18n("Signing Job Test"), QStringLiteral("0.1"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
- parser.addVersionOption();
- parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
diff --git a/src/tests/test_keygen.cpp b/src/tests/test_keygen.cpp
index f061fa8..c6808f8 100644
--- a/src/tests/test_keygen.cpp
+++ b/src/tests/test_keygen.cpp
@@ -170,8 +170,6 @@ int main(int argc, char **argv)
KAboutData aboutData(QStringLiteral("test_keygen"), i18n("KeyGenerationJob Test"), QStringLiteral("0.1"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
- parser.addVersionOption();
- parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
diff --git a/src/tests/test_keylister.cpp b/src/tests/test_keylister.cpp
index ee45578..5eaebd2 100644
--- a/src/tests/test_keylister.cpp
+++ b/src/tests/test_keylister.cpp
@@ -142,8 +142,6 @@ int main(int argc, char **argv)
KAboutData aboutData(QStringLiteral("test_keylister"), i18n("KeyLister Test"), QStringLiteral("0.1"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
- parser.addVersionOption();
- parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
diff --git a/src/tests/test_keyselectioncombo.cpp b/src/tests/test_keyselectioncombo.cpp
index 807221e..330491c 100644
--- a/src/tests/test_keyselectioncombo.cpp
+++ b/src/tests/test_keyselectioncombo.cpp
@@ -44,8 +44,6 @@ int main(int argc, char **argv)
parser.addOption(signingOption);
KAboutData::setApplicationData(aboutData);
- parser.addVersionOption();
- parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
diff --git a/src/tests/test_keyselectiondialog.cpp b/src/tests/test_keyselectiondialog.cpp
index 0edd26c..17c2bc7 100644
--- a/src/tests/test_keyselectiondialog.cpp
+++ b/src/tests/test_keyselectiondialog.cpp
@@ -46,8 +46,6 @@ int main(int argc, char **argv)
KAboutData aboutData(QStringLiteral("test_keyselectiondialog"), i18n("KeySelectionDialog Test"), QStringLiteral("0.1"));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
- parser.addVersionOption();
- parser.addHelpOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);