mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
silence some compiler warnings
This commit is contained in:
parent
2d2ac2900c
commit
34eb174ae8
@ -34,7 +34,7 @@ NAN_METHOD(NamedWindow::New) {
|
||||
NamedWindow* win;
|
||||
if (args.Length() == 1){
|
||||
win = new NamedWindow(std::string(*NanAsciiString(args[0]->ToString())), 0);
|
||||
} else if (args.Length() == 2){
|
||||
} else { //if (args.Length() == 2){
|
||||
win = new NamedWindow(std::string(*NanAsciiString(args[0]->ToString())), 0);
|
||||
}
|
||||
|
||||
|
||||
@ -1144,7 +1144,6 @@ NAN_METHOD(Matrix::FindContours) {
|
||||
}
|
||||
|
||||
Local<Object> conts_to_return= NanNew(Contour::constructor)->GetFunction()->NewInstance();
|
||||
Contour *contours = ObjectWrap::Unwrap<Contour>(conts_to_return);
|
||||
|
||||
NanReturnValue(conts_to_return);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user