From dc0a2e3ec98d4fe9c9b75e31c5881988cbbcdc3b Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Sat, 18 Oct 2008 11:08:21 +0200 Subject: [PATCH] Cleanups --- src/commands/Branches.cpp | 2 +- src/commands/Dist.cpp | 2 +- src/commands/Dist.h | 1 - src/commands/Push.cpp | 4 ++-- src/commands/Record.cpp | 6 ------ 5 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/commands/Branches.cpp b/src/commands/Branches.cpp index d9e4a01..e558d6e 100644 --- a/src/commands/Branches.cpp +++ b/src/commands/Branches.cpp @@ -49,5 +49,5 @@ QString Branches::argumentDescription() const QString Branches::commandDescription() const { - return ""; // TODO + return QString(); // TODO } diff --git a/src/commands/Dist.cpp b/src/commands/Dist.cpp index 7349397..324693d 100644 --- a/src/commands/Dist.cpp +++ b/src/commands/Dist.cpp @@ -180,7 +180,7 @@ AbstractCommand::ReturnCodes Dist::run() QString Dist::argumentDescription() const { - return ""; + return QString(); } QString Dist::commandDescription() const diff --git a/src/commands/Dist.h b/src/commands/Dist.h index 0407245..123382f 100644 --- a/src/commands/Dist.h +++ b/src/commands/Dist.h @@ -20,7 +20,6 @@ #define DIST_H #include "AbstractCommand.h" -#include "ExcludeMatcher.h" class Dist : public AbstractCommand { diff --git a/src/commands/Push.cpp b/src/commands/Push.cpp index cbaf840..71b90de 100644 --- a/src/commands/Push.cpp +++ b/src/commands/Push.cpp @@ -44,7 +44,7 @@ Push::Push() : AbstractCommand("Push") { CommandLineParser::addOptionDefinitions(options); - CommandLineParser::setArgumentDefinition("push [ReturnCodes]" ); + CommandLineParser::setArgumentDefinition("push [Repository]" ); } AbstractCommand::ReturnCodes Push::run() @@ -79,7 +79,7 @@ AbstractCommand::ReturnCodes Push::run() } } - QString repo(""); + QString repo; if (args->arguments().count() > 1) repo = args->arguments()[1]; diff --git a/src/commands/Record.cpp b/src/commands/Record.cpp index cc6efe3..f927931 100644 --- a/src/commands/Record.cpp +++ b/src/commands/Record.cpp @@ -46,14 +46,8 @@ static const CommandLineOption options[] = { //{"--delete-logfile", "delete the logfile when done"}, //{"--no-test", "don't run the test script"}, //{"--test", "run the test script"}, - //{"--leave-test-directory", "don't remove the test directory"}, - //{"--remove-test-directory", "remove the test directory"}, - //{"--edit-long-comment", "Edit the long comment by default"}, - //{"--skip-long-comment", "Don't give a long comment"}, - //{"--prompt-long-comment", "Prompt for whether to edit the long comment"}, //{"-l, --look-for-adds", "Also look for files that are potentially pending addition"}, //{"--dont-look-for-adds", "Don't look for any files that could be added"}, - //{"--umask UMASK", "specify umask to use when writing."}, //{"--posthook COMMAND", "specify command to run after this vng command."}, //{"--no-posthook", "Do not run posthook command."}, //{"--prompt-posthook", "Prompt before running posthook. [DEFAULT]"}, -- 2.11.4.GIT