From f7caa5640e8a800994578a14831b94b17e630a4a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 26 Sep 2022 13:38:28 -0700 Subject: refactor(context.cc): move variable initializer --- cait/context.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cait/context.cc b/cait/context.cc index f34d55c..ab7b5e6 100644 --- a/cait/context.cc +++ b/cait/context.cc @@ -22,8 +22,9 @@ namespace cait { -context::context(const parser &parser) { - this->jobs = std::thread::hardware_concurrency() + 2; +context::context(const parser &parser) + : jobs(std::thread::hardware_concurrency() + 2) { + // this->jobs = std::thread::hardware_concurrency() + 2; for (const auto &parse_node : parser.nodes()) { std::visit( -- cgit v1.2.3