From d8e5f1611b338290cc73b8c20a3076599d688fbd Mon Sep 17 00:00:00 2001 From: Max Khardin Date: Mon, 13 Jan 2014 15:55:49 +0400 Subject: [PATCH] Rewrite definition/declaration of variables to be more compact --- modules/core/perf/perf_arithm.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/core/perf/perf_arithm.cpp b/modules/core/perf/perf_arithm.cpp index d3a75ca..3598c86 100644 --- a/modules/core/perf/perf_arithm.cpp +++ b/modules/core/perf/perf_arithm.cpp @@ -207,9 +207,7 @@ PERF_TEST_P(Size_MatType, multiply, TYPICAL_MATS_CORE_ARITHM) { Size sz = get<0>(GetParam()); int type = get<1>(GetParam()); - cv::Mat a = Mat(sz, type); - cv::Mat b = Mat(sz, type); - cv::Mat c = Mat(sz, type); + cv::Mat a(sz, type), b(sz, type), c(sz, type); declare.in(a, b, WARMUP_RNG).out(c); if (CV_MAT_DEPTH(type) == CV_32S) @@ -228,9 +226,7 @@ PERF_TEST_P(Size_MatType, multiplyScale, TYPICAL_MATS_CORE_ARITHM) { Size sz = get<0>(GetParam()); int type = get<1>(GetParam()); - cv::Mat a = Mat(sz, type); - cv::Mat b = Mat(sz, type); - cv::Mat c = Mat(sz, type); + cv::Mat a(sz, type), b(sz, type), c(sz, type); double scale = 0.5; declare.in(a, b, WARMUP_RNG).out(c); -- 2.7.4