[C API] Fix coverity scan issue about GET_INTEL_GPU_PROPERTY_FROM_ARGS_LIST (#20330)
Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
This commit is contained in:
1 parent
aa6adcd261
commit
d205684aff
1 file changed
+2
-2
@@ -37,11 +37,11 @@ inline bool check_intel_gpu_property_value_is_ptr(std::string& key) {
|
||||
std::string property_key = va_arg(args_ptr, char*); \
|
||||
if (check_intel_gpu_property_value_is_ptr(property_key)) { \
|
||||
ov::Any value = va_arg(args_ptr, void*); \
|
||||
property[property_key] = value; \
|
||||
property[property_key] = std::move(value); \
|
||||
} else { \
|
||||
std::string _value = va_arg(args_ptr, char*); \
|
||||
ov::Any value = _value; \
|
||||
property[property_key] = value; \
|
||||
property[property_key] = std::move(value); \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user