summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-09-26 13:38:28 -0700
committerFuwn <[email protected]>2022-09-26 13:38:28 -0700
commitf7caa5640e8a800994578a14831b94b17e630a4a (patch)
tree0d8cdc625d386158e9f3ff1b630cd9c2c51a76c8
parentfix(CMakeLists.txt): source location (diff)
downloadcait-main.tar.xz
cait-main.zip
refactor(context.cc): move variable initializerHEADmain
-rw-r--r--cait/context.cc5
1 files 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(