From 6393a7f44e93ee5f07aa0501fe1bdaf72984a0b7 Mon Sep 17 00:00:00 2001 From: Simon Hailes Date: Fri, 10 Nov 2017 10:32:51 +0000 Subject: [PATCH] avoid warning about initilisation order --- src/Matrix.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Matrix.cc b/src/Matrix.cc index ab6f3dc..319853d 100755 --- a/src/Matrix.cc +++ b/src/Matrix.cc @@ -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?