Skip to content

Commit

Permalink
Fix CS issues (openvinotoolkit#26317)
Browse files Browse the repository at this point in the history
### Details:
 - Fix CS issues
 - *...*

### Tickets:
 - *ticket-id*

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
  • Loading branch information
zhaixuejun1993 authored Sep 2, 2024
1 parent 0d070e4 commit 8168d1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/bindings/c/src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
} \
return out_str; \
}; \
ov::EncryptionCallbacks encryption_callbacks{encrypt_value, decrypt_value}; \
ov::EncryptionCallbacks encryption_callbacks{std::move(encrypt_value), std::move(decrypt_value)}; \
property[property_key] = encryption_callbacks; \
} else { \
std::string _value = va_arg(args_ptr, char*); \
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ std::shared_ptr<ov::ICompiledModel> Plugin::import_model(std::istream& networkMo
[this](const std::string& model, const ov::Tensor& weights) {
return get_core()->read_model(model, weights, true);
},
decrypt);
std::move(decrypt));

std::shared_ptr<ov::Model> model;
deserializer >> model;
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/intel_cpu/src/serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void setInfo(pugi::xml_node& root, std::shared_ptr<ov::Model>& model) {
}

ModelSerializer::ModelSerializer(std::ostream& ostream, cache_encrypt encrypt_fn)
: _ostream(ostream), _cache_encrypt(encrypt_fn) {}
: _ostream(ostream), _cache_encrypt(std::move(encrypt_fn)) {}

void ModelSerializer::operator<<(const std::shared_ptr<ov::Model>& model) {
auto serializeInfo = [&](std::ostream& stream) {
Expand All @@ -48,8 +48,8 @@ void ModelSerializer::operator<<(const std::shared_ptr<ov::Model>& model) {

ModelDeserializer::ModelDeserializer(std::istream & istream, model_builder fn, cache_decrypt decrypt_fn)
: _istream(istream)
, _model_builder(fn)
, _cache_decrypt(decrypt_fn) {
, _model_builder(std::move(fn))
, _cache_decrypt(std::move(decrypt_fn)) {
}

void ModelDeserializer::operator>>(std::shared_ptr<ov::Model>& model) {
Expand Down

0 comments on commit 8168d1a

Please sign in to comment.