OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
Fix CS issues (#26317)
Xuejun Zhai8168d1a79a10
diff --git a/src/bindings/c/src/common.h b/src/bindings/c/src/common.hindex f4fc3f40d42..0c97482b20b 100644--- a/src/bindings/c/src/common.h+++ b/src/bindings/c/src/common.h@@ -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*); \diff --git a/src/plugins/intel_cpu/src/plugin.cpp b/src/plugins/intel_cpu/src/plugin.cppindex 0f38e475727..6fd0b038400 100644--- a/src/plugins/intel_cpu/src/plugin.cpp+++ b/src/plugins/intel_cpu/src/plugin.cpp@@ -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;diff --git a/src/plugins/intel_cpu/src/serialize.cpp b/src/plugins/intel_cpu/src/serialize.cppindex 511ef93e8b8..16583cf1c73 100644--- a/src/plugins/intel_cpu/src/serialize.cpp+++ b/src/plugins/intel_cpu/src/serialize.cpp@@ -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) {@@ -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) {