fix coverity scan issue CID 1537543#28213
Merged
wangleis merged 2 commits intoopenvinotoolkit:masterfrom Jan 2, 2025
Merged
Conversation
sunxiaoxia2022
approved these changes
Dec 27, 2024
MirceaDan99
pushed a commit
to MirceaDan99/openvino
that referenced
this pull request
Jan 22, 2025
### 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*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)
Use std::move(streams_info_table) instead of streams_info_table.
711 streams_info_table};
712
Tickets: