From: Orgad Shaneh Date: Tue, 13 Sep 2022 16:16:54 +0000 (+0300) Subject: refactor: Reuse local reference in process_args (#1157) X-Git-Tag: v4.7~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e04705a593dc2454c510663590d2ec2324d82929;p=thirdparty%2Fccache.git refactor: Reuse local reference in process_args (#1157) --- diff --git a/src/argprocessing.cpp b/src/argprocessing.cpp index 404623585..412787c51 100644 --- a/src/argprocessing.cpp +++ b/src/argprocessing.cpp @@ -1134,8 +1134,7 @@ process_args(Context& ctx) std::optional argument_error; for (size_t i = 1; i < args.size(); i++) { - const auto error = - process_arg(ctx, ctx.args_info, ctx.config, args, i, state); + const auto error = process_arg(ctx, args_info, ctx.config, args, i, state); if (error != Statistic::none && !argument_error) { argument_error = error; } @@ -1490,7 +1489,7 @@ process_args(Context& ctx) } if (ctx.config.depend_mode()) { // The compiler is invoked with the original arguments in the depend mode. - ctx.args_info.depend_extra_args.push_back(*diagnostics_color_arg); + args_info.depend_extra_args.push_back(*diagnostics_color_arg); } }