Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 6ab5ce7

Browse files
fixed last compiler warning after merge with master
1 parent 23c1263 commit 6ab5ce7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

cc/core/MatXimgprocBindings.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,55 @@
44
#define __FF_MATXIMGPROCBINDINGS_H__
55

66
namespace MatXimgprocBindings {
7-
7+
88
struct GuidedFilterWorker : public CatchCvExceptionWorker {
99
public:
1010
cv::Mat self;
1111
GuidedFilterWorker(cv::Mat self) {
1212
this->self = self;
1313
}
14-
14+
1515
cv::Mat guide;
1616
int radius;
1717
double eps;
1818
int ddepth = -1;
19-
19+
2020
cv::Mat dst;
21-
21+
2222
std::string executeCatchCvExceptionWorker() {
2323
cv::ximgproc::guidedFilter(guide, self, dst, radius, eps, ddepth);
2424
return "";
2525
}
26-
26+
2727
v8::Local<v8::Value> getReturnValue() {
2828
return Mat::Converter::wrap(dst);
2929
}
30-
30+
3131
bool unwrapRequiredArgs(Nan::NAN_METHOD_ARGS_TYPE info) {
3232
return (
3333
Mat::Converter::arg(0, &guide, info) ||
3434
IntConverter::arg(1, &radius, info) ||
3535
DoubleConverter::arg(2, &eps, info)
3636
);
3737
}
38-
38+
3939
bool unwrapOptionalArgs(Nan::NAN_METHOD_ARGS_TYPE info) {
4040
return (
4141
IntConverter::optArg(3, &ddepth, info)
4242
);
4343
}
44-
44+
4545
bool hasOptArgsObject(Nan::NAN_METHOD_ARGS_TYPE info) {
4646
return FF_ARG_IS_OBJECT(3);
4747
}
48-
48+
4949
bool unwrapOptionalArgsFromOpts(Nan::NAN_METHOD_ARGS_TYPE info) {
50-
v8::Local<v8::Object> opts = info[3]->ToObject();
50+
v8::Local<v8::Object> opts = info[3]->ToObject(Nan::GetCurrentContext()).ToLocalChecked();
5151
return (
5252
IntConverter::optProp(&ddepth, "ddepth", opts)
5353
);
5454
}
55-
};
55+
};
5656

5757
}
5858

0 commit comments

Comments
 (0)