Skip to content

Commit

Permalink
fix coverity scan issue CID 1537543 (#28213)
Browse files Browse the repository at this point in the history
### 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: (#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*
  • Loading branch information
wangleis authored Dec 31, 2024
1 parent 517ad68 commit 251c9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/cpu_streams_calculation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ std::vector<std::vector<int>> generate_stream_info(const int streams,
ov::hint::SchedulingCoreType::ANY_CORE,
false,
cpu_pinning,
streams_info_table};
std::move(streams_info_table)};

return proc_type_table;
}
Expand Down

0 comments on commit 251c9fc

Please sign in to comment.