From ce167e233b96c9751cec506bfa60d6a917b9c4bd Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 20 Mar 2015 13:27:08 +0300 Subject: [PATCH] Reduce variable scope --- modules/core/src/dxt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/core/src/dxt.cpp b/modules/core/src/dxt.cpp index b3cde84df4..1291278209 100644 --- a/modules/core/src/dxt.cpp +++ b/modules/core/src/dxt.cpp @@ -2449,7 +2449,6 @@ void cv::dft( InputArray _src0, OutputArray _dst, int flags, int nonzero_rows ) (DFTFunc)CCSIDFT_64f }; AutoBuffer buf; - void *spec = 0; Mat src0 = _src0.getMat(), src = src0; int prev_len = 0, stage = 0; bool inv = (flags & DFT_INVERSE) != 0; @@ -2570,7 +2569,7 @@ void cv::dft( InputArray _src0, OutputArray _dst, int flags, int nonzero_rows ) sz = 2*len*complex_elem_size; } - spec = 0; + void *spec = 0; #ifdef USE_IPP_DFT if( CV_IPP_CHECK_COND && (len*count >= 64) ) // use IPP DFT if available {