From: Roman Donchenko Date: Tue, 13 Aug 2013 14:52:06 +0000 (+0400) Subject: Replace an incorrect usage of Ptr with a simple vector. X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~941^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a2c21bb632c4f10cd0c7ca12b575c53f33ed82d;p=profile%2Fivi%2Fopencv.git Replace an incorrect usage of Ptr with a simple vector. --- diff --git a/apps/traincascade/boost.cpp b/apps/traincascade/boost.cpp index 29ac4bc..732704a 100644 --- a/apps/traincascade/boost.cpp +++ b/apps/traincascade/boost.cpp @@ -957,7 +957,7 @@ void CvCascadeBoostTree::write( FileStorage &fs, const Mat& featureMap ) int subsetN = (maxCatCount + 31)/32; queue internalNodesQueue; int size = (int)pow( 2.f, (float)ensemble->get_params().max_depth); - Ptr leafVals = new float[size]; + std::vector leafVals(size); int leafValIdx = 0; int internalNodeIdx = 1; CvDTreeNode* tempNode;