From 51de5807e87bdbdaefd8a5c61dfa0bf293ecd2db Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Thu, 26 Oct 2023 13:25:50 +0300 Subject: [PATCH] Set of build fixes for ## 3580, 3574. --- modules/cudaarithm/test/test_event.cpp | 2 +- modules/datasets/src/tinyxml2/tinyxml2.h | 2 +- modules/xphoto/src/oilpainting.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/cudaarithm/test/test_event.cpp b/modules/cudaarithm/test/test_event.cpp index 375c51d0d..ffe0f7b68 100644 --- a/modules/cudaarithm/test/test_event.cpp +++ b/modules/cudaarithm/test/test_event.cpp @@ -91,7 +91,7 @@ CUDA_TEST_P(AsyncEvent, Timing) const double elTimeMs = Event::elapsedTime(startEvent, stopEvent); ASSERT_GT(elTimeMs, 0); } - catch (cv::Exception ex) { + catch (const cv::Exception& ex) { failed = true; } ASSERT_EQ(failed, shouldFail.at(i)); diff --git a/modules/datasets/src/tinyxml2/tinyxml2.h b/modules/datasets/src/tinyxml2/tinyxml2.h index 95ae3bcc0..89a16c65b 100644 --- a/modules/datasets/src/tinyxml2/tinyxml2.h +++ b/modules/datasets/src/tinyxml2/tinyxml2.h @@ -212,7 +212,7 @@ template class DynArray { public: - DynArray< T, INIT >() { + DynArray() { _mem = _pool; _allocated = INIT; _size = 0; diff --git a/modules/xphoto/src/oilpainting.cpp b/modules/xphoto/src/oilpainting.cpp index 21e62414c..daeffd386 100644 --- a/modules/xphoto/src/oilpainting.cpp +++ b/modules/xphoto/src/oilpainting.cpp @@ -58,7 +58,7 @@ private: int dynRatio; public: - ParallelOilPainting(Mat& img, Mat &d, Mat &iLuminance, int r,int k) : + ParallelOilPainting(Mat& img, Mat &d, Mat &iLuminance, int r,int k) : imgSrc(img), dst(d), imgLuminance(iLuminance),