From 7cc108d87c02ccc7cc441a9bc101636b82ecbdc6 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sun, 27 Apr 2025 12:31:35 -0400 Subject: [PATCH] chore: ArgParse, use auto where possible --- src/lib/deskflow/ArgParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/deskflow/ArgParser.cpp b/src/lib/deskflow/ArgParser.cpp index 586381522..af3f6ff06 100644 --- a/src/lib/deskflow/ArgParser.cpp +++ b/src/lib/deskflow/ArgParser.cpp @@ -337,7 +337,7 @@ const char **ArgParser::getArgv(std::vector &argsArray) // we use the c string pointers from argsArray and assign // them to the inner array. So caller only need to use // delete[] to delete the outer array - const char **argv = new const char *[argc]; + const auto **argv = new const char *[argc]; for (size_t i = 0; i < argc; i++) { argv[i] = argsArray[i].c_str(); @@ -351,7 +351,7 @@ ArgParser::assembleCommand(std::vector &argsArray, std::string igno { std::string result; - for (std::vector::iterator it = argsArray.begin(); it != argsArray.end(); ++it) { + for (auto it = argsArray.begin(); it != argsArray.end(); ++it) { if (it->compare(ignoreArg) == 0) { it = it + parametersRequired; continue;