Skip to content
Snippets Groups Projects
Commit c02a8fd3 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

ice: don't perform unnecessary move

Change-Id: Id9176818cdc0162e4ac689a34c8927aadba4fd7b
parent 38ab04eb
No related branches found
No related tags found
No related merge requests found
...@@ -372,8 +372,8 @@ IceTransport::Impl::initIceInstance(const IceTransportOptions& options) ...@@ -372,8 +372,8 @@ IceTransport::Impl::initIceInstance(const IceTransportOptions& options)
streamsCount_ = options.streamsCount; streamsCount_ = options.streamsCount;
compCountPerStream_ = options.compCountPerStream; compCountPerStream_ = options.compCountPerStream;
compCount_ = streamsCount_ * compCountPerStream_; compCount_ = streamsCount_ * compCountPerStream_;
compIO_ = std::move(std::vector<ComponentIO>(compCount_)); compIO_ = std::vector<ComponentIO>(compCount_);
peerChannels_ = std::move(std::vector<PeerChannel>(compCount_)); peerChannels_ = std::vector<PeerChannel>(compCount_);
iceDefaultRemoteAddr_.reserve(compCount_); iceDefaultRemoteAddr_.reserve(compCount_);
initiatorSession_ = options.master; initiatorSession_ = options.master;
accountLocalAddr_ = std::move(options.accountLocalAddr); accountLocalAddr_ = std::move(options.accountLocalAddr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment