| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,7 +63,7 @@ void NodeCategorySet::Enable(const FunctionCallbackInfo<Value>& args) { | |||
| 63 | 63 | NodeCategorySet* category_set; | |
| 64 | 64 | ASSIGN_OR_RETURN_UNWRAP(&category_set, args.Holder()); | |
| 65 | 65 | CHECK_NE(category_set, nullptr); | |
| 66 | - auto categories = category_set->GetCategories(); | ||
| 66 | + const auto& categories = category_set->GetCategories(); | ||
| 67 | 67 | if (!category_set->enabled_ && !categories.empty()) { | |
| 68 | 68 | env->tracing_agent()->Enable(categories); | |
| 69 | 69 | category_set->enabled_ = true; | |
@@ -75,7 +75,7 @@ void NodeCategorySet::Disable(const FunctionCallbackInfo<Value>& args) { | |||
| 75 | 75 | NodeCategorySet* category_set; | |
| 76 | 76 | ASSIGN_OR_RETURN_UNWRAP(&category_set, args.Holder()); | |
| 77 | 77 | CHECK_NE(category_set, nullptr); | |
| 78 | - auto categories = category_set->GetCategories(); | ||
| 78 | + const auto& categories = category_set->GetCategories(); | ||
| 79 | 79 | if (category_set->enabled_ && !categories.empty()) { | |
| 80 | 80 | env->tracing_agent()->Disable(categories); | |
| 81 | 81 | category_set->enabled_ = false; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments