diff --git a/modules/softcascade/src/detector_cuda.cpp b/modules/softcascade/src/detector_cuda.cpp index a3a1512e24..ef19fad058 100644 --- a/modules/softcascade/src/detector_cuda.cpp +++ b/modules/softcascade/src/detector_cuda.cpp @@ -58,7 +58,7 @@ cv::softcascade::ChannelsProcessor::ChannelsProcessor() { throw_no_cuda(); } cv::softcascade::ChannelsProcessor::~ChannelsProcessor() { throw_no_cuda(); } cv::Ptr cv::softcascade::ChannelsProcessor::create(const int, const int, const int) -{ throw_no_cuda(); return cv::Ptr(0); } +{ throw_no_cuda(); return cv::Ptr(); } #else @@ -594,7 +594,7 @@ private: cv::Ptr cv::softcascade::ChannelsProcessor::create(const int s, const int b, const int m) { CV_Assert((m && SEPARABLE)); - return cv::Ptr(new SeparablePreprocessor(s, b)); + return makePtr(s, b); } cv::softcascade::ChannelsProcessor::ChannelsProcessor() { }