From 42cac7762c78841384cae418219a766f24e92e63 Mon Sep 17 00:00:00 2001 From: Eli Date: Sat, 23 Feb 2019 00:28:02 +0200 Subject: [PATCH] clean unused var and made for loop more readable --- source/app/common/argument_parser/argument_parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/app/common/argument_parser/argument_parser.cpp b/source/app/common/argument_parser/argument_parser.cpp index 0e8f6fa..ead5a28 100755 --- a/source/app/common/argument_parser/argument_parser.cpp +++ b/source/app/common/argument_parser/argument_parser.cpp @@ -56,10 +56,9 @@ void argument_parser::set_options() int argument_parser::parse(int argc, char *argv [], const char* application_text, const char* prefix_text) { - application_path = argv[0]; argument_count = argc; - for (int i = 0; i < argc; i++) + for (int i = 0; i < argument_count; i++) arguments[i] = argv[i]; set_options();