avoid warning about initilisation order

This commit is contained in:
Simon Hailes 2017-11-10 10:32:51 +00:00
parent 0b6b1f42cc
commit 6393a7f44e

View File

@ -1895,14 +1895,14 @@ public:
ResizeASyncWorker(Nan::Callback *callback, Matrix *image, cv::Size size, double fx, double fy, int interpolation) :
Nan::AsyncWorker(callback),
image(image),
dest(NULL),
size(size),
fx(fx),
fy(fy),
interpolation(interpolation),
success(0),
dest(NULL){
success(0) {
}
~ResizeASyncWorker() {
// don't leave this if it was allocated
// could happen if NaN does not call HandleSuccess?