Eliminated deprecation warnings while building in Node v4.1.2

This commit is contained in:
Keegan Brown 2015-10-06 12:46:44 -05:00
parent 420cd12c60
commit 8b3e747c35
5 changed files with 12 additions and 12 deletions

View File

@ -104,11 +104,11 @@ NAN_METHOD(BackgroundSubtractorWrap::ApplyMOG) {
argv[0] = Nan::Null();
argv[1] = fgMask;
TryCatch try_catch;
Nan::TryCatch try_catch;
cb->Call(Nan::GetCurrentContext()->Global(), 2, argv);
if (try_catch.HasCaught()) {
FatalException(try_catch);
Nan::FatalException(try_catch);
}
return;
} catch (cv::Exception& e) {

View File

@ -97,10 +97,10 @@ public:
argv[0] = Nan::Null();
argv[1] = arr;
TryCatch try_catch;
Nan::TryCatch try_catch;
callback->Call(2, argv);
if (try_catch.HasCaught()) {
FatalException(try_catch);
Nan::FatalException(try_catch);
}
}

View File

@ -645,10 +645,10 @@ public:
actualBuffer
};
TryCatch try_catch;
Nan::TryCatch try_catch;
callback->Call(2, argv);
if (try_catch.HasCaught()) {
FatalException(try_catch);
Nan::FatalException(try_catch);
}
}
@ -915,10 +915,10 @@ public:
Nan::New<Number>(res)
};
TryCatch try_catch;
Nan::TryCatch try_catch;
callback->Call(2, argv);
if (try_catch.HasCaught()) {
FatalException(try_catch);
Nan::FatalException(try_catch);
}
}

View File

@ -57,11 +57,11 @@ NAN_METHOD(OpenCV::ReadImage) {
argv[1] = Nan::Null();
}
TryCatch try_catch;
Nan::TryCatch try_catch;
cb->Call(Nan::GetCurrentContext()->Global(), 2, argv);
if (try_catch.HasCaught()) {
FatalException(try_catch);
Nan::FatalException(try_catch);
}
return;

View File

@ -172,10 +172,10 @@ public:
, im_to_return
};
TryCatch try_catch;
Nan::TryCatch try_catch;
callback->Call(2, argv);
if (try_catch.HasCaught()) {
FatalException(try_catch);
Nan::FatalException(try_catch);
}
}