mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Removed unnecessary v8:: prefixes
This commit is contained in:
parent
d90fcf78e0
commit
2e48ea0a61
@ -87,7 +87,9 @@ NAN_METHOD(OpenCV::ReadImageMulti) {
|
||||
argv[1] = Nan::Null();
|
||||
}
|
||||
|
||||
Local <v8::Array> output = Nan::New<v8::Array>(mats.size());
|
||||
Local <Array> output = Nan::New<Array>(mats.size());
|
||||
argv[1] = output;
|
||||
|
||||
for (std::vector<cv::Mat>::size_type i = 0; i < mats.size(); i ++) {
|
||||
Local<Object> im_h = Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
|
||||
Matrix *img = Nan::ObjectWrap::Unwrap<Matrix>(im_h);
|
||||
@ -96,8 +98,6 @@ NAN_METHOD(OpenCV::ReadImageMulti) {
|
||||
output->Set(i, im_h);
|
||||
}
|
||||
|
||||
argv[1] = output;
|
||||
|
||||
Nan::TryCatch try_catch;
|
||||
cb->Call(Nan::GetCurrentContext()->Global(), 2, argv);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user