From c494012cd7beba45a5bb3cd275f25386cbd4ec7f Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Tue, 18 May 2021 16:35:46 +0300 Subject: [PATCH] Code review --- inference-engine/include/cpp/ie_executable_network.hpp | 2 +- inference-engine/include/cpp/ie_infer_request.hpp | 2 +- inference-engine/include/cpp/ie_memory_state.hpp | 2 +- .../src/inference_engine/cpp/ie_executable_network.cpp | 2 +- inference-engine/src/inference_engine/cpp/ie_infer_request.cpp | 2 +- inference-engine/src/inference_engine/cpp/ie_variable_state.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/inference-engine/include/cpp/ie_executable_network.hpp b/inference-engine/include/cpp/ie_executable_network.hpp index 9e5e7158e6736a..4200d160c5d94c 100644 --- a/inference-engine/include/cpp/ie_executable_network.hpp +++ b/inference-engine/include/cpp/ie_executable_network.hpp @@ -30,8 +30,8 @@ class IExecutableNetwork; * @brief This is an interface of an executable network */ class INFERENCE_ENGINE_API_CLASS(ExecutableNetwork) { - std::shared_ptr _impl; details::SharedObjectLoader _so; + std::shared_ptr _impl; /** * @brief Constructs ExecutableNetwork from the initialized std::shared_ptr diff --git a/inference-engine/include/cpp/ie_infer_request.hpp b/inference-engine/include/cpp/ie_infer_request.hpp index 392c0abaa0568e..54c71c410fd7d8 100644 --- a/inference-engine/include/cpp/ie_infer_request.hpp +++ b/inference-engine/include/cpp/ie_infer_request.hpp @@ -29,8 +29,8 @@ class IInferRequestInternal; * It can throw exceptions safely for the application, where it is properly handled. */ class INFERENCE_ENGINE_API_CLASS(InferRequest) { - std::shared_ptr _impl; details::SharedObjectLoader _so; + std::shared_ptr _impl; /** * @brief Constructs InferRequest from the initialized std::shared_ptr diff --git a/inference-engine/include/cpp/ie_memory_state.hpp b/inference-engine/include/cpp/ie_memory_state.hpp index 8014c8fa3a34a3..7e135abcb4721d 100644 --- a/inference-engine/include/cpp/ie_memory_state.hpp +++ b/inference-engine/include/cpp/ie_memory_state.hpp @@ -25,8 +25,8 @@ class IVariableStateInternal; * @brief C++ exception based error reporting wrapper of API class IVariableState */ class INFERENCE_ENGINE_API_CLASS(VariableState) { - std::shared_ptr _impl; details::SharedObjectLoader _so; + std::shared_ptr _impl; /** * @brief Constructs VariableState from the initialized std::shared_ptr diff --git a/inference-engine/src/inference_engine/cpp/ie_executable_network.cpp b/inference-engine/src/inference_engine/cpp/ie_executable_network.cpp index c792af606a7fa3..de7a0371718d59 100644 --- a/inference-engine/src/inference_engine/cpp/ie_executable_network.cpp +++ b/inference-engine/src/inference_engine/cpp/ie_executable_network.cpp @@ -22,7 +22,7 @@ namespace InferenceEngine { ExecutableNetwork::ExecutableNetwork(const details::SharedObjectLoader& so, const IExecutableNetworkInternal::Ptr& impl) - : _impl(impl), _so(so) { + : _so(so), _impl(impl) { IE_ASSERT(_impl != nullptr); } diff --git a/inference-engine/src/inference_engine/cpp/ie_infer_request.cpp b/inference-engine/src/inference_engine/cpp/ie_infer_request.cpp index 7d9e57bba1e9f7..39ded89d237bec 100644 --- a/inference-engine/src/inference_engine/cpp/ie_infer_request.cpp +++ b/inference-engine/src/inference_engine/cpp/ie_infer_request.cpp @@ -43,7 +43,7 @@ namespace InferenceEngine { InferRequest::InferRequest(const details::SharedObjectLoader& so, const IInferRequestInternal::Ptr& impl) - : _impl(impl), _so(so) { + : _so(so), _impl(impl) { IE_ASSERT(_impl != nullptr); } diff --git a/inference-engine/src/inference_engine/cpp/ie_variable_state.cpp b/inference-engine/src/inference_engine/cpp/ie_variable_state.cpp index d74ccaace6d094..2490b9fe1ad694 100644 --- a/inference-engine/src/inference_engine/cpp/ie_variable_state.cpp +++ b/inference-engine/src/inference_engine/cpp/ie_variable_state.cpp @@ -21,7 +21,7 @@ namespace InferenceEngine { VariableState::VariableState(const details::SharedObjectLoader& so, const IVariableStateInternal::Ptr& impl) - : _impl(impl), _so(so) { + : _so(so), _impl(impl) { IE_ASSERT(_impl != nullptr); }