diff --git a/src/HighGUI.cc b/src/HighGUI.cc index f2160b9..bb1197b 100644 --- a/src/HighGUI.cc +++ b/src/HighGUI.cc @@ -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); } diff --git a/src/Matrix.cc b/src/Matrix.cc index f006e1b..4748516 100755 --- a/src/Matrix.cc +++ b/src/Matrix.cc @@ -1144,7 +1144,6 @@ NAN_METHOD(Matrix::FindContours) { } Local conts_to_return= NanNew(Contour::constructor)->GetFunction()->NewInstance(); - Contour *contours = ObjectWrap::Unwrap(conts_to_return); NanReturnValue(conts_to_return);