File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,11 @@ Napi::Value Fuzzaldrin::FilterTree(const Napi::CallbackInfo &info) {
77
77
Napi::TypeError::New (info.Env (), " Invalid arguments" ).ThrowAsJavaScriptException ();
78
78
return Napi::Array::New (info.Env ());
79
79
}
80
- const auto & jsTreeArray = info[0 ].As <Napi::Array>();
81
- const std::string & query = info[1 ].As <Napi::String>();
80
+ const auto jsTreeArray = info[0 ].As <Napi::Array>();
81
+ const std::string query = info[1 ].As <Napi::String>();
82
82
83
- const string & dataKey = info[2 ].As <Napi::String>();
84
- const string & childrenKey = info[3 ].As <Napi::String>();
83
+ const string dataKey = info[2 ].As <Napi::String>();
84
+ const string childrenKey = info[3 ].As <Napi::String>();
85
85
86
86
const size_t maxResults = info[4 ].As <Napi::Number>().Uint32Value ();
87
87
const bool usePathScoring = info[5 ].As <Napi::Boolean>();
@@ -93,7 +93,7 @@ Napi::Value Fuzzaldrin::FilterTree(const Napi::CallbackInfo &info) {
93
93
94
94
// create options
95
95
const auto options = Options (query, maxResults, usePathScoring, useExtensionBonus);
96
- const auto & matches = filter (candidates_, query, options);
96
+ const auto matches = filter (candidates_, query, options);
97
97
98
98
// filter
99
99
auto filteredCandidateObjects = Napi::Array::New (info.Env ());// array of candidate objects (with their address in index and level)
You can’t perform that action at this time.
0 commit comments