Skip to content

v0.2.54..v0.2.55 changeset StatsCmd.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/StatsCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/StatsCmd.cpp
index a732434..47b87e6 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/StatsCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/StatsCmd.cpp
@@ -62,15 +62,15 @@ public:
 
   virtual int runSimple(QStringList& args) override
   {
+    QElapsedTimer timer;
+    timer.start();
+
     if (args.size() < 1)
     {
       cout << getHelp() << endl << endl;
       throw HootException(QString("%1 takes one parameter.").arg(getName()));
     }
 
-    QElapsedTimer timer;
-    timer.start();
-
     const QString QUICK_SWITCH = "--brief";
     const QString OUTPUT_SWITCH = "--output=";
 
@@ -79,7 +79,7 @@ public:
     bool quick = false;
     bool toFile = false;
     QString outputFilename = "";
-    //  Capture any flags and remove them before processing inputs
+    // Capture any flags and remove them before processing inputs
     for (int i = 0; i < args.size(); i++)
     {
       if (args[i].startsWith(OUTPUT_SWITCH))
Clone this wiki locally