Skip to content

Commit f2802b7

Browse files
wangleisMirceaDan99
authored andcommitted
fix coverity scan issue CID 1537543 (openvinotoolkit#28213)
### Details: - *fix coverity scan issue CID 1537543* config.streamExecutorConfig = IStreamsExecutor::Config{"CPUStreamsExecutor", 706 config.streams, 707 config.threadsPerStream, 708 ov::hint::SchedulingCoreType::ANY_CORE, 709 false, 710 cpu_pinning, CID 1537543: (openvinotoolkit#1 of 1): COPY_INSTEAD_OF_MOVE (COPY_INSTEAD_OF_MOVE) 1. copy_constructor_call: streams_info_table is passed-by-value as parameter to ov::threading::IStreamsExecutor::Config::Config(std::string, int, int, ov::hint::SchedulingCoreType, bool, bool, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, std::vector<int, std::allocator<int> >) when it could be moved instead. Use std::move(streams_info_table) instead of streams_info_table. 711 streams_info_table}; 712 ### Tickets: - *ticket-id*
1 parent 13e430b commit f2802b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/intel_cpu/src/cpu_streams_calculation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ std::vector<std::vector<int>> generate_stream_info(const int streams,
708708
ov::hint::SchedulingCoreType::ANY_CORE,
709709
false,
710710
cpu_pinning,
711-
streams_info_table};
711+
std::move(streams_info_table)};
712712

713713
return proc_type_table;
714714
}

0 commit comments

Comments
 (0)