From a0ce93639d74e80df0f39cbf9fb02222e71d2399 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 31 May 2021 13:21:20 +0300 Subject: [PATCH] Fixed klockwork issue (#5898) --- .../transformations/preprocessing/preprocessing.cpp | 1 - inference-engine/include/ie_version.hpp | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/template_plugin/src/transformations/preprocessing/preprocessing.cpp b/docs/template_plugin/src/transformations/preprocessing/preprocessing.cpp index b6f211d1135..1d391d8f49a 100644 --- a/docs/template_plugin/src/transformations/preprocessing/preprocessing.cpp +++ b/docs/template_plugin/src/transformations/preprocessing/preprocessing.cpp @@ -42,7 +42,6 @@ bool ngraph::pass::AddPreprocessing::run_on_function(std::shared_ptrgetTensorDesc().getPrecision() == InferenceEngine::Precision::FP32, "Only InferenceEngine::Precision::FP32 precision is supported for PreProcessChannel::meanData"); } else { - NGRAPH_CHECK(pInfo[c]->meanData != nullptr, "pInfo[c]->meanData is nullptr"); NGRAPH_CHECK(meanImage->getTensorDesc() == pInfo[c]->meanData->getTensorDesc(), "TensorDesc for PreProcessChannel::meanData must be equal"); } } diff --git a/inference-engine/include/ie_version.hpp b/inference-engine/include/ie_version.hpp index d7b88667e29..13215d0b68d 100644 --- a/inference-engine/include/ie_version.hpp +++ b/inference-engine/include/ie_version.hpp @@ -74,6 +74,17 @@ struct Version { major = _major; minor = _minor; } + + /** + * @brief A copy operator + * @param other An object to copy + * @return A copy + */ + ApiVersion& operator=(const ApiVersion& other) { + major = other.major; + minor = other.minor; + return *this; + } }; /**