From dcfa23d5d2c3f158191b13c9004f33f87d3c397c Mon Sep 17 00:00:00 2001 From: Dmitry Budnikov Date: Mon, 19 Oct 2020 13:46:23 +0300 Subject: [PATCH] KW fixes --- modules/gapi/include/opencv2/gapi/media.hpp | 1 + modules/gapi/test/common/gapi_core_tests_inl.hpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gapi/include/opencv2/gapi/media.hpp b/modules/gapi/include/opencv2/gapi/media.hpp index a7fe258757..f27cb80913 100644 --- a/modules/gapi/include/opencv2/gapi/media.hpp +++ b/modules/gapi/include/opencv2/gapi/media.hpp @@ -51,6 +51,7 @@ public: View(Ptrs&& ptrs, Strides&& strs, Callback &&cb = [](){}); View(const View&) = delete; View(View&&) = default; + View& operator = (const View&) = delete; ~View(); Ptrs ptr; diff --git a/modules/gapi/test/common/gapi_core_tests_inl.hpp b/modules/gapi/test/common/gapi_core_tests_inl.hpp index e350a14e65..e11324f070 100644 --- a/modules/gapi/test/common/gapi_core_tests_inl.hpp +++ b/modules/gapi/test/common/gapi_core_tests_inl.hpp @@ -618,7 +618,8 @@ TEST_P(SumTest, AccuracyTest) #undef countNonZero TEST_P(CountNonZeroTest, AccuracyTest) { - int out_cnz_gapi, out_cnz_ocv; + int out_cnz_gapi = -1; + int out_cnz_ocv = -2; // G-API code ////////////////////////////////////////////////////////////// cv::GMat in;