From bf40bb64028e9340dc1778c3afe5dbd0da26da6c Mon Sep 17 00:00:00 2001 From: whatdoineed2do/Ray Date: Mon, 25 Sep 2023 12:10:42 +0100 Subject: [PATCH] CLI moved to stack object --- src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 558a5b7..31234b6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -39,23 +39,23 @@ int main(int argc, char *argv[]) { return status; } - CLI* run = new CLI(options, keys); + CLI run(options, keys); switch(options.applicationMode) { case MODE_BINK1998_GENERATE: - return run->BINK1998Generate(); + return run.BINK1998Generate(); case MODE_BINK2002_GENERATE: - return run->BINK2002Generate(); + return run.BINK2002Generate(); case MODE_BINK1998_VALIDATE: - return run->BINK1998Validate(); + return run.BINK1998Validate(); case MODE_BINK2002_VALIDATE: - return run->BINK2002Validate(); + return run.BINK2002Validate(); case MODE_CONFIRMATION_ID: - return run->ConfirmationID(); + return run.ConfirmationID(); default: return 1;